Package org.trellisldp.oauth
Class JwksAuthenticator
- java.lang.Object
-
- org.trellisldp.oauth.JwksAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class JwksAuthenticator extends Object implements Authenticator
A jwks-based authenticator.
-
-
Constructor Summary
Constructors Constructor Description JwksAuthenticator(String url)
Build a jwks-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
-
JwksAuthenticator
public JwksAuthenticator(String url)
Build a jwks-based authenticator.- Parameters:
url
- the location of the public jwks keys
-
-
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
-
-