Package io.smallrye.jwt.auth.principal
Class DefaultJWTCallerPrincipalFactory
java.lang.Object
io.smallrye.jwt.auth.principal.JWTCallerPrincipalFactory
io.smallrye.jwt.auth.principal.DefaultJWTCallerPrincipalFactory
A default implementation of the abstract JWTCallerPrincipalFactory that uses the Keycloak token parsing classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(String token, JWTAuthContextInfo authContextInfo) Parse the given bearer token string into a JWTCallerPrincipal instance.Methods inherited from class io.smallrye.jwt.auth.principal.JWTCallerPrincipalFactory
instance, setInstance
-
Constructor Details
-
DefaultJWTCallerPrincipalFactory
public DefaultJWTCallerPrincipalFactory()
-
-
Method Details
-
parse
public JWTCallerPrincipal parse(String token, JWTAuthContextInfo authContextInfo) throws ParseException Description copied from class:JWTCallerPrincipalFactoryParse the given bearer token string into a JWTCallerPrincipal instance.- Specified by:
parsein classJWTCallerPrincipalFactory- Parameters:
token- - the bearer token provided for authorizationauthContextInfo- - context/configuration details- Returns:
- A JWTCallerPrincipal representation for the token.
- Throws:
ParseException- on parse or verification failure.
-