Package io.smallrye.jwt.auth.principal
Class DefaultJWTCallerPrincipalFactory
- java.lang.Object
-
- io.smallrye.jwt.auth.principal.JWTCallerPrincipalFactory
-
- io.smallrye.jwt.auth.principal.DefaultJWTCallerPrincipalFactory
-
public class DefaultJWTCallerPrincipalFactory extends JWTCallerPrincipalFactory
A default implementation of the abstract JWTCallerPrincipalFactory that uses the Keycloak token parsing classes.
-
-
Constructor Summary
Constructors Constructor Description DefaultJWTCallerPrincipalFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JWTCallerPrincipalparse(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
-
-
-
-
Method Detail
-
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.
-
-