public class JWTCredential extends Object
Constructor and Description |
---|
JWTCredential(String bearerToken,
JWTAuthContextInfo authContextInfo) |
Modifier and Type | Method and Description |
---|---|
JWTAuthContextInfo |
getAuthContextInfo() |
String |
getBearerToken() |
Exception |
getJwtException() |
String |
getName()
This just parses the token without validation to extract one of the following in order to obtain
the name to be used for the principal:
upn
preferred_username
subject
If there is an exception it sets the name to INVALID_TOKEN_NAME and saves the exception for access
via
getJwtException() |
public JWTCredential(String bearerToken, JWTAuthContextInfo authContextInfo)
bearerToken
- authContextInfo
- public String getName()
getJwtException()
public String getBearerToken()
public JWTAuthContextInfo getAuthContextInfo()
public Exception getJwtException()
Copyright © 2018 JBoss by Red Hat. All rights reserved.