public class DefaultJWTCallerPrincipalFactory extends JWTCallerPrincipalFactory
Constructor and Description |
---|
DefaultJWTCallerPrincipalFactory()
Tries to load the JWTAuthContextInfo from CDI if the class level authContextInfo has not been set.
|
Modifier and Type | Method and Description |
---|---|
JWTCallerPrincipal |
parse(java.lang.String token,
JWTAuthContextInfo authContextInfo)
Parse the given bearer token string into a JWTCallerPrincipal instance.
|
instance, setInstance
public DefaultJWTCallerPrincipalFactory()
public JWTCallerPrincipal parse(java.lang.String token, JWTAuthContextInfo authContextInfo) throws ParseException
JWTCallerPrincipalFactory
parse
in class JWTCallerPrincipalFactory
token
- - the bearer token provided for authorizationParseException
- on parse or verification failure.