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 Principalauthenticate(String credentials)Authenticate credentials.io.jsonwebtoken.Claimsparse(String credentials)Parse a token into a set of claims.
-
-
-
Method Detail
-
parse
public io.jsonwebtoken.Claims parse(String credentials)
Description copied from interface:AuthenticatorParse a token into a set of claims.- Specified by:
parsein interfaceAuthenticator- Parameters:
credentials- the token- Returns:
- JWT claims
-
authenticate
public Principal authenticate(String credentials)
Description copied from interface:AuthenticatorAuthenticate credentials.- Specified by:
authenticatein interfaceAuthenticator- Parameters:
credentials- the token- Returns:
- the principal if present
-
-