Uses of Class
org.keycloak.representations.JsonWebToken
Packages that use JsonWebToken
Package
Description
-
Uses of JsonWebToken in org.keycloak
Classes in org.keycloak with type parameters of type JsonWebTokenModifier and TypeClassDescriptionclass
TokenVerifier<T extends JsonWebToken>
static interface
TokenVerifier.Predicate<T extends JsonWebToken>
Functional interface of checks that verify some part of a JWT.Fields in org.keycloak with type parameters of type JsonWebTokenModifier and TypeFieldDescriptionstatic final TokenVerifier.Predicate<JsonWebToken>
TokenVerifier.IS_ACTIVE
Check for token being neither expired nor used before it gets valid.static final TokenVerifier.Predicate<JsonWebToken>
TokenVerifier.SUBJECT_EXISTS_CHECK
Methods in org.keycloak with type parameters of type JsonWebTokenModifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
TokenVerifier.Predicate<T>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<T>Creates an instance ofTokenVerifier
from the given string on a JWT of the given class.static <T extends JsonWebToken>
TokenVerifier<T>TokenVerifier.createWithoutSignature
(T token) Creates an instance ofTokenVerifier
for the given token.static <T extends JsonWebToken>
TokenVerifier.Predicate<T>TokenVerifier.optional
(TokenVerifier.Predicate<T> mandatoryPredicate) Creates an optional predicate from a predicate that will proceed with check but always pass.Methods in org.keycloak with parameters of type JsonWebTokenModifier and TypeMethodDescriptionboolean
TokenVerifier.AudienceCheck.test
(JsonWebToken t) boolean
TokenVerifier.IssuedForCheck.test
(JsonWebToken jsonWebToken) boolean
TokenVerifier.RealmUrlCheck.test
(JsonWebToken t) boolean
TokenVerifier.TokenTypeCheck.test
(JsonWebToken t) -
Uses of JsonWebToken in org.keycloak.authentication.actiontoken
Classes in org.keycloak.authentication.actiontoken with type parameters of type JsonWebTokenModifier and TypeClassDescriptionclass
AbstractActionTokenHandler<T extends JsonWebToken>
class
ActionTokenContext<T extends JsonWebToken>
interface
ActionTokenHandler<T extends JsonWebToken>
Handler of the action token.interface
ActionTokenHandlerFactory<T extends JsonWebToken>
Subclasses of JsonWebToken in org.keycloak.authentication.actiontokenModifier and TypeClassDescriptionclass
Part of action token that is intended to be used e.g.Methods in org.keycloak.authentication.actiontoken with type parameters of type JsonWebTokenModifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
TokenVerifier.Predicate<T>Returns a predicate for use inTokenVerifier
using the given boolean-returning function.static <T extends JsonWebToken>
TokenVerifier.Predicate<T>TokenUtils.onlyIf
(Predicate<T> condition, TokenVerifier.Predicate<T> predicate) Returns a predicate that is applied only if the givencondition
evaluates to .static <T extends JsonWebToken>
TokenVerifier.Predicate<? super T>[]TokenUtils.predicates
(TokenVerifier.Predicate<? super T>... predicate) Methods in org.keycloak.authentication.actiontoken that return types with arguments of type JsonWebTokenModifier and TypeMethodDescriptionstatic TokenVerifier.Predicate<JsonWebToken>
TokenUtils.checkThat
(BooleanSupplier function, String errorEvent, String errorMessage) Returns a predicate for use inTokenVerifier
using the given boolean-returning function.Constructors in org.keycloak.authentication.actiontoken with parameters of type JsonWebTokenModifierConstructorDescriptionExplainedTokenVerificationException
(JsonWebToken token, String errorEvent) ExplainedTokenVerificationException
(JsonWebToken token, String errorEvent, String message) ExplainedTokenVerificationException
(JsonWebToken token, String errorEvent, String message, Throwable cause) ExplainedTokenVerificationException
(JsonWebToken token, String errorEvent, Throwable cause) -
Uses of JsonWebToken in org.keycloak.authentication.actiontoken.execactions
Subclasses of JsonWebToken in org.keycloak.authentication.actiontoken.execactions -
Uses of JsonWebToken in org.keycloak.authentication.actiontoken.idpverifyemail
Subclasses of JsonWebToken in org.keycloak.authentication.actiontoken.idpverifyemailModifier and TypeClassDescriptionclass
Representation of a token that represents a time-limited verify e-mail action. -
Uses of JsonWebToken in org.keycloak.authentication.actiontoken.inviteorg
Subclasses of JsonWebToken in org.keycloak.authentication.actiontoken.inviteorgModifier and TypeClassDescriptionclass
Representation of a token that represents a time-limited verify e-mail action. -
Uses of JsonWebToken in org.keycloak.authentication.actiontoken.resetcred
Subclasses of JsonWebToken in org.keycloak.authentication.actiontoken.resetcredModifier and TypeClassDescriptionclass
Representation of a token that represents a time-limited reset credentials action. -
Uses of JsonWebToken in org.keycloak.authentication.actiontoken.updateemail
Subclasses of JsonWebToken in org.keycloak.authentication.actiontoken.updateemail -
Uses of JsonWebToken in org.keycloak.authentication.actiontoken.verifyemail
Subclasses of JsonWebToken in org.keycloak.authentication.actiontoken.verifyemailModifier and TypeClassDescriptionclass
Representation of a token that represents a time-limited verify e-mail action. -
Uses of JsonWebToken in org.keycloak.authentication.authenticators.client
Methods in org.keycloak.authentication.authenticators.client that return JsonWebToken -
Uses of JsonWebToken in org.keycloak.authorization.client.representation
Subclasses of JsonWebToken in org.keycloak.authorization.client.representation -
Uses of JsonWebToken in org.keycloak.broker.oidc
Methods in org.keycloak.broker.oidc that return JsonWebTokenModifier and TypeMethodDescriptionprotected JsonWebToken
AbstractOAuth2IdentityProvider.generateToken()
OIDCIdentityProvider.validateToken
(String encodedToken) protected JsonWebToken
OIDCIdentityProvider.validateToken
(String encodedToken, boolean ignoreAudience) Methods in org.keycloak.broker.oidc with parameters of type JsonWebTokenModifier and TypeMethodDescriptionprotected BrokeredIdentityContext
OIDCIdentityProvider.extractIdentity
(AccessTokenResponse tokenResponse, String accessToken, JsonWebToken idToken) protected boolean
OIDCIdentityProvider.isAuthTimeExpired
(JsonWebToken idToken, AuthenticationSessionModel authSession) protected static boolean
OIDCIdentityProvider.isTokenTypeSupported
(JsonWebToken parsedToken) -
Uses of JsonWebToken in org.keycloak.broker.oidc.mappers
Methods in org.keycloak.broker.oidc.mappers with parameters of type JsonWebTokenModifier and TypeMethodDescriptionstatic Object
AbstractClaimMapper.getClaimValue
(JsonWebToken token, String claim) -
Uses of JsonWebToken in org.keycloak.exceptions
Methods in org.keycloak.exceptions that return JsonWebTokenConstructors in org.keycloak.exceptions with parameters of type JsonWebTokenModifierConstructorDescriptionTokenNotActiveException
(JsonWebToken token, String message) TokenNotActiveException
(JsonWebToken token, String message, Throwable cause) TokenNotActiveException
(JsonWebToken token, Throwable cause) TokenSignatureInvalidException
(JsonWebToken token, String message) TokenSignatureInvalidException
(JsonWebToken token, String message, Throwable cause) TokenSignatureInvalidException
(JsonWebToken token, Throwable cause) TokenVerificationException
(JsonWebToken token, String message) TokenVerificationException
(JsonWebToken token, String message, Throwable cause) TokenVerificationException
(JsonWebToken token, Throwable cause) -
Uses of JsonWebToken in org.keycloak.models
Subclasses of JsonWebToken in org.keycloak.models -
Uses of JsonWebToken in org.keycloak.protocol.oidc
Methods in org.keycloak.protocol.oidc with parameters of type JsonWebTokenModifier and TypeMethodDescriptionboolean
TokenManager.NotBeforeCheck.test
(JsonWebToken t) boolean
TokenManager.TokenRevocationCheck.test
(JsonWebToken token) -
Uses of JsonWebToken in org.keycloak.protocol.oidc.client.authentication
Methods in org.keycloak.protocol.oidc.client.authentication that return JsonWebTokenModifier and TypeMethodDescriptionprotected JsonWebToken
JWTClientCredentialsProvider.createRequestToken
(String clientId, String realmInfoUrl) protected JsonWebToken
JWTClientSecretCredentialsProvider.createRequestToken
(String clientId, String realmInfoUrl) -
Uses of JsonWebToken in org.keycloak.protocol.oidc.grants.ciba.channel
Subclasses of JsonWebToken in org.keycloak.protocol.oidc.grants.ciba.channelModifier and TypeClassDescriptionclass
Represents an authentication request sent by a consumption device (CD). -
Uses of JsonWebToken in org.keycloak.representations
Subclasses of JsonWebToken in org.keycloak.representationsModifier and TypeClassDescriptionclass
class
class
class
class
Methods in org.keycloak.representations that return JsonWebTokenModifier and TypeMethodDescriptionJsonWebToken.addAudience
(String audience) JsonWebToken.issuedNow()
Set issuedAt to the current time -
Uses of JsonWebToken in org.keycloak.representations.docker
Subclasses of JsonWebToken in org.keycloak.representations.dockerModifier and TypeClassDescriptionclass
* { "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" ] } ] } -
Uses of JsonWebToken in org.keycloak.representations.dpop
Subclasses of JsonWebToken in org.keycloak.representations.dpop -
Uses of JsonWebToken in org.keycloak.representations.idm.authorization
Subclasses of JsonWebToken in org.keycloak.representations.idm.authorization -
Uses of JsonWebToken in org.keycloak.representations.oidc
Subclasses of JsonWebToken in org.keycloak.representations.oidc -
Uses of JsonWebToken in org.keycloak.services.clientpolicy.context
Methods in org.keycloak.services.clientpolicy.context that return JsonWebTokenModifier and TypeMethodDescriptiondefault JsonWebToken
ClientCRUDContext.getToken()
returnsJsonWebToken
of the token accompanied with the request to register/read/update/unregister clientConstructors in org.keycloak.services.clientpolicy.context with parameters of type JsonWebTokenModifierConstructorDescriptionDynamicClientRegisterContext
(ClientRegistrationContext context, JsonWebToken token, RealmModel realm) DynamicClientRegisteredContext
(ClientRegistrationContext context, ClientModel registeredClient, JsonWebToken token, RealmModel realm) DynamicClientUnregisterContext
(KeycloakSession session, ClientModel targetClient, JsonWebToken token, RealmModel realm) DynamicClientUpdateContext
(ClientRegistrationContext context, ClientModel proposedClientRepresentation, JsonWebToken token, RealmModel realm) DynamicClientUpdatedContext
(KeycloakSession session, ClientModel updatedClient, JsonWebToken token, RealmModel realm) DynamicClientViewContext
(KeycloakSession session, ClientModel targetClient, JsonWebToken token, RealmModel realm) -
Uses of JsonWebToken in org.keycloak.services.clientregistration
Subclasses of JsonWebToken in org.keycloak.services.clientregistrationMethods in org.keycloak.services.clientregistration that return JsonWebTokenModifier and TypeMethodDescriptionClientRegistrationAuth.getJwt()
ClientRegistrationTokenUtils.TokenVerification.getJwt()
Methods in org.keycloak.services.clientregistration with parameters of type JsonWebTokenModifier and TypeMethodDescriptionClientRegistrationTokenUtils.TokenVerification.success
(String kid, JsonWebToken jwt) -
Uses of JsonWebToken in org.keycloak.services.managers
Subclasses of JsonWebToken in org.keycloak.services.managers -
Uses of JsonWebToken in org.keycloak.services.resources
Methods in org.keycloak.services.resources with type parameters of type JsonWebTokenModifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
voidLoginActionsServiceChecks.checkIsClientValid
(T token, ActionTokenContext<T> context) Verifies whether the client denoted by client ID in token'siss
(issuedFor
) field both exists and is enabled.static <T extends JsonWebToken & SingleUseObjectKeyModel>
voidLoginActionsServiceChecks.checkIsUserValid
(T token, ActionTokenContext<T> context, EventBuilder event) Verifies whether the user given by ID both exists in the current realm.static <T extends JsonWebToken & SingleUseObjectKeyModel>
voidLoginActionsServiceChecks.checkTokenWasNotUsedYet
(T token, ActionTokenContext<T> context) static <T extends JsonWebToken>
booleanLoginActionsServiceChecks.doesAuthenticationSessionFromCookieMatchOneFromToken
(ActionTokenContext<T> context, AuthenticationSessionModel authSessionFromCookie, String authSessionCompoundIdFromToken) This check verifies that current authentication session is consistent with the one specified in token.protected <T extends JsonWebToken & SingleUseObjectKeyModel>
jakarta.ws.rs.core.ResponseLoginActionsService.handleActionToken
(String tokenString, String execution, String clientId, String tabId, String clientData, TriFunction<ActionTokenHandler<T>, T, ActionTokenContext<T>, jakarta.ws.rs.core.Response> preHandleToken) Methods in org.keycloak.services.resources with parameters of type JsonWebTokenModifier and TypeMethodDescriptionboolean
LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken.test
(JsonWebToken t) boolean
LoginActionsServiceChecks.IsActionRequired.test
(JsonWebToken t) boolean
LoginActionsServiceChecks.IsRedirectValid.test
(JsonWebToken t) -
Uses of JsonWebToken in org.keycloak.social.gitlab
Methods in org.keycloak.social.gitlab with parameters of type JsonWebTokenModifier and TypeMethodDescriptionprotected BrokeredIdentityContext
GitLabIdentityProvider.extractIdentity
(AccessTokenResponse tokenResponse, String accessToken, JsonWebToken idToken) -
Uses of JsonWebToken in org.keycloak.social.google
Methods in org.keycloak.social.google that return JsonWebTokenModifier and TypeMethodDescriptionprotected JsonWebToken
GoogleIdentityProvider.validateToken
(String encodedToken, boolean ignoreAudience) -
Uses of JsonWebToken in org.keycloak.util
Methods in org.keycloak.util with type parameters of type JsonWebTokenModifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
TTokenUtil.jweDirectVerifyAndDecode
(Key aesKey, Key hmacKey, String jweStr, Class<T> expectedClass) Methods in org.keycloak.util with parameters of type JsonWebTokenModifier and TypeMethodDescriptionstatic String
TokenUtil.jweDirectEncode
(Key aesKey, Key hmacKey, JsonWebToken jwt)