Package org.trellisldp.oauth
Class NullAuthenticator
- java.lang.Object
-
- org.trellisldp.oauth.NullAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class NullAuthenticator extends Object implements Authenticator
A null authenticator.
-
-
Constructor Summary
Constructors Constructor Description NullAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
authenticate(String credentials)
Authenticate credentials.io.jsonwebtoken.Claims
parse(String credentials)
Parse a token into a set of claims.
-
-
-
Method Detail
-
parse
public io.jsonwebtoken.Claims parse(String credentials)
Description copied from interface:Authenticator
Parse a token into a set of claims.- Specified by:
parse
in interfaceAuthenticator
- Parameters:
credentials
- the token- Returns:
- JWT claims
-
authenticate
public Principal authenticate(String credentials)
Description copied from interface:Authenticator
Authenticate credentials.- Specified by:
authenticate
in interfaceAuthenticator
- Parameters:
credentials
- the token- Returns:
- the principal if present
-
-