Package org.trellisldp.oauth
Class JwtAuthenticator
- java.lang.Object
-
- org.trellisldp.oauth.JwtAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class JwtAuthenticator extends Object implements Authenticator
A JWT-based authenticator.
-
-
Constructor Summary
Constructors Constructor Description JwtAuthenticator(Key key)
Create a JWT-based authenticator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jsonwebtoken.Claims
parse(String token)
Parse a token into a set of claims.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.trellisldp.oauth.Authenticator
authenticate
-
-
-
-
Constructor Detail
-
JwtAuthenticator
public JwtAuthenticator(Key key)
Create a JWT-based authenticator.- Parameters:
key
- a key
-
-
Method Detail
-
parse
public io.jsonwebtoken.Claims parse(String token)
Description copied from interface:Authenticator
Parse a token into a set of claims.- Specified by:
parse
in interfaceAuthenticator
- Parameters:
token
- the token- Returns:
- JWT claims
-
-