public class AdapterTokenVerifier extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AdapterTokenVerifier.VerifiedTokens |
Constructor and Description |
---|
AdapterTokenVerifier() |
Modifier and Type | Method and Description |
---|---|
static <T extends JsonWebToken> |
createVerifier(String tokenString,
KeycloakDeployment deployment,
boolean withDefaultChecks,
Class<T> tokenClass)
Creates verifier, initializes it from the KeycloakDeployment and adds the publicKey and some default basic checks (activeness and tokenType).
|
static AccessToken |
verifyToken(String tokenString,
KeycloakDeployment deployment)
Verifies bearer token.
|
static AdapterTokenVerifier.VerifiedTokens |
verifyTokens(String accessTokenString,
String idTokenString,
KeycloakDeployment deployment)
Verify access token and ID token.
|
public static AccessToken verifyToken(String tokenString, KeycloakDeployment deployment) throws VerificationException
tokenString
- deployment
- VerificationException
public static AdapterTokenVerifier.VerifiedTokens verifyTokens(String accessTokenString, String idTokenString, KeycloakDeployment deployment) throws VerificationException
accessTokenString
- idTokenString
- deployment
- VerificationException
public static <T extends JsonWebToken> TokenVerifier<T> createVerifier(String tokenString, KeycloakDeployment deployment, boolean withDefaultChecks, Class<T> tokenClass) throws VerificationException
T
- tokenString
- deployment
- withDefaultChecks
- tokenClass
- VerificationException
Copyright © 2019 JBoss by Red Hat. All rights reserved.