public abstract class JWTCallerPrincipalFactory extends 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(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(String token, JWTAuthContextInfo authContextInfo) throws ParseException
token - - the bearer token provided for authorizationParseException - on parse or verification failure.Copyright © 2018 JBoss by Red Hat. All rights reserved.