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 TypeClassDescriptionclassTokenVerifier<T extends JsonWebToken>static interfaceTokenVerifier.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_ACTIVECheck for token being neither expired nor used before it gets valid.static final TokenVerifier.Predicate<JsonWebToken>TokenVerifier.SUBJECT_EXISTS_CHECKMethods 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 ofTokenVerifierfrom the given string on a JWT of the given class.static <T extends JsonWebToken>
TokenVerifier<T>TokenVerifier.createWithoutSignature(T token) Creates an instance ofTokenVerifierfor 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 TypeMethodDescriptionbooleanTokenVerifier.AudienceCheck.test(JsonWebToken t) booleanTokenVerifier.IssuedForCheck.test(JsonWebToken jsonWebToken) booleanTokenVerifier.RealmUrlCheck.test(JsonWebToken t) booleanTokenVerifier.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 TypeClassDescriptionclassAbstractActionTokenHandler<T extends JsonWebToken>classActionTokenContext<T extends JsonWebToken>interfaceActionTokenHandler<T extends JsonWebToken>Handler of the action token.interfaceActionTokenHandlerFactory<T extends JsonWebToken>Subclasses of JsonWebToken in org.keycloak.authentication.actiontokenModifier and TypeClassDescriptionclassPart 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 inTokenVerifierusing 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 givenconditionevaluates 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 inTokenVerifierusing the given boolean-returning function.Methods in org.keycloak.authentication.actiontoken with parameters of type JsonWebTokenModifier and TypeMethodDescriptionTokenUtils.checkRequestedAudiences(JsonWebToken token, List<String> requestedAudience) Check that all requested audiences from parameter "requestedAudience" are available in the accessToken.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 TypeClassDescriptionclassRepresentation 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 TypeClassDescriptionclassRepresentation 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 TypeClassDescriptionclassRepresentation 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 TypeClassDescriptionclassRepresentation 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 JsonWebTokenConstructors in org.keycloak.authentication.authenticators.client with parameters of type JsonWebTokenModifierConstructorDescriptionClientAssertionState(ClientModel client, String clientAssertionType, String clientAssertion, JWSInput jws, JsonWebToken token) -
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 JsonWebTokenAbstractOAuth2IdentityProvider.generateToken()OIDCIdentityProvider.validateToken(String encodedToken) protected JsonWebTokenOIDCIdentityProvider.validateToken(String encodedToken, boolean ignoreAudience) Methods in org.keycloak.broker.oidc with parameters of type JsonWebTokenModifier and TypeMethodDescriptionprotected BrokeredIdentityContextOIDCIdentityProvider.extractIdentity(AccessTokenResponse tokenResponse, String accessToken, JsonWebToken idToken) protected booleanOIDCIdentityProvider.isAuthTimeExpired(JsonWebToken idToken, AuthenticationSessionModel authSession) protected booleanOIDCIdentityProvider.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 ObjectAbstractClaimMapper.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.oid4vc.model
Subclasses of JsonWebToken in org.keycloak.protocol.oid4vc.model -
Uses of JsonWebToken in org.keycloak.protocol.oidc
Methods in org.keycloak.protocol.oidc with parameters of type JsonWebTokenModifier and TypeMethodDescriptionbooleanTokenManager.NotBeforeCheck.test(JsonWebToken t) booleanTokenManager.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 JsonWebTokenJWTClientCredentialsProvider.createRequestToken(String clientId, String realmInfoUrl) protected JsonWebTokenJWTClientSecretCredentialsProvider.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 TypeClassDescriptionclassRepresents an authentication request sent by a consumption device (CD). -
Uses of JsonWebToken in org.keycloak.representations
Subclasses of JsonWebToken in org.keycloak.representationsModifier and TypeClassDescriptionclassclassclassclassclassMethods 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 JsonWebTokenClientCRUDContext.getToken()returnsJsonWebTokenof 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.clientregistration -
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 TypeMethodDescriptionbooleanLoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken.test(JsonWebToken t) booleanLoginActionsServiceChecks.IsActionRequired.test(JsonWebToken t) booleanLoginActionsServiceChecks.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 BrokeredIdentityContextGitLabIdentityProvider.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 JsonWebTokenGoogleIdentityProvider.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 StringTokenUtil.jweDirectEncode(Key aesKey, Key hmacKey, JsonWebToken jwt)