Modifier and Type | Class and Description |
---|---|
class |
TokenVerifier<T extends JsonWebToken> |
static interface |
TokenVerifier.Predicate<T extends JsonWebToken>
Functional interface of checks that verify some part of a JWT.
|
Modifier and Type | Field and Description |
---|---|
static TokenVerifier.Predicate<JsonWebToken> |
TokenVerifier.IS_ACTIVE
Check for token being neither expired nor used before it gets valid.
|
static TokenVerifier.Predicate<JsonWebToken> |
TokenVerifier.SUBJECT_EXISTS_CHECK |
Modifier and Type | Method and Description |
---|---|
static <T extends JsonWebToken> |
TokenVerifier.alternative(TokenVerifier.Predicate<? super T>... predicates)
Creates a predicate that will proceed with checks of the given predicates
and will pass if and only if at least one of the given predicates passes.
|
static <T extends JsonWebToken> |
TokenVerifier.create(String tokenString,
Class<T> clazz)
Creates an instance of
TokenVerifier from the given string on a JWT of the given class. |
static <T extends JsonWebToken> |
TokenVerifier.createWithoutSignature(T token)
Creates an instance of
TokenVerifier for the given token. |
static <T extends JsonWebToken> |
TokenVerifier.optional(TokenVerifier.Predicate<T> mandatoryPredicate)
Creates an optional predicate from a predicate that will proceed with check but always pass.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TokenVerifier.RealmUrlCheck.test(JsonWebToken t) |
boolean |
TokenVerifier.TokenTypeCheck.test(JsonWebToken t) |
boolean |
TokenVerifier.AudienceCheck.test(JsonWebToken t) |
boolean |
TokenVerifier.IssuedForCheck.test(JsonWebToken jsonWebToken) |
Modifier and Type | Method and Description |
---|---|
protected JsonWebToken |
JWTClientCredentialsProvider.createRequestToken(String clientId,
String realmInfoUrl) |
Modifier and Type | Method and Description |
---|---|
static <T extends JsonWebToken> |
AdapterTokenVerifier.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).
|
Modifier and Type | Class and Description |
---|---|
class |
TokenIntrospectionResponse |
Modifier and Type | Method and Description |
---|---|
JsonWebToken |
TokenVerificationException.getToken() |
Constructor and Description |
---|
TokenNotActiveException(JsonWebToken token) |
TokenNotActiveException(JsonWebToken token,
String message) |
TokenNotActiveException(JsonWebToken token,
String message,
Throwable cause) |
TokenNotActiveException(JsonWebToken token,
Throwable cause) |
TokenSignatureInvalidException(JsonWebToken token) |
TokenSignatureInvalidException(JsonWebToken token,
String message) |
TokenSignatureInvalidException(JsonWebToken token,
String message,
Throwable cause) |
TokenSignatureInvalidException(JsonWebToken token,
Throwable cause) |
TokenVerificationException(JsonWebToken token) |
TokenVerificationException(JsonWebToken token,
String message) |
TokenVerificationException(JsonWebToken token,
String message,
Throwable cause) |
TokenVerificationException(JsonWebToken token,
Throwable cause) |
Modifier and Type | Class and Description |
---|---|
class |
AccessToken |
class |
IDToken |
class |
RefreshToken |
Modifier and Type | Method and Description |
---|---|
JsonWebToken |
JsonWebToken.addAudience(String audience) |
JsonWebToken |
JsonWebToken.audience(String... audience) |
JsonWebToken |
JsonWebToken.expiration(int expiration) |
JsonWebToken |
JsonWebToken.id(String id) |
JsonWebToken |
JsonWebToken.issuedAt(int issuedAt) |
JsonWebToken |
JsonWebToken.issuedFor(String issuedFor) |
JsonWebToken |
JsonWebToken.issuedNow()
Set issuedAt to the current time
|
JsonWebToken |
JsonWebToken.issuer(String issuer) |
JsonWebToken |
JsonWebToken.notBefore(int notBefore) |
JsonWebToken |
JsonWebToken.subject(String subject) |
JsonWebToken |
JsonWebToken.type(String type) |
Modifier and Type | Class and Description |
---|---|
class |
DockerResponseToken
* {
"iss": "auth.docker.com",
"sub": "jlhawn",
"aud": "registry.docker.com",
"exp": 1415387315,
"nbf": 1415387015,
"iat": 1415387015,
"jti": "tYJCO1c6cnyy7kAn0c7rKPgbV1H1bFws",
"access": [
{
"type": "repository",
"name": "samalba/my-app",
"actions": [
"push"
]
}
]
}
|
Modifier and Type | Class and Description |
---|---|
class |
PermissionTicketToken |
Modifier and Type | Class and Description |
---|---|
class |
TokenMetadataRepresentation |
Modifier and Type | Method and Description |
---|---|
static <T extends JsonWebToken> |
TokenUtil.jweDirectVerifyAndDecode(Key aesKey,
Key hmacKey,
String jweStr,
Class<T> expectedClass) |
Modifier and Type | Method and Description |
---|---|
static String |
TokenUtil.jweDirectEncode(Key aesKey,
Key hmacKey,
JsonWebToken jwt) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.