public abstract class JWTCallerPrincipalFactory
extends java.lang.Object
Constructor and Description |
---|
JWTCallerPrincipalFactory() |
Modifier and Type | Method and Description |
---|---|
static JWTCallerPrincipalFactory |
instance()
Obtain the JWTCallerPrincipalFactory that has been set or by using the ServiceLoader pattern.
|
abstract JWTCallerPrincipal |
parse(java.lang.String token,
JWTAuthContextInfo authContextInfo)
Parse the given bearer token string into a JWTCallerPrincipal instance.
|
static void |
setInstance(JWTCallerPrincipalFactory resolver)
Set the instance.
|
public static JWTCallerPrincipalFactory instance()
setInstance(JWTCallerPrincipalFactory)
public static void setInstance(JWTCallerPrincipalFactory resolver)
resolver
- the instance to use.public abstract JWTCallerPrincipal parse(java.lang.String token, JWTAuthContextInfo authContextInfo) throws ParseException
token
- - the bearer token provided for authorizationParseException
- on parse or verification failure.