Uses of Class
org.keycloak.common.VerificationException
Packages that use VerificationException
Package
Description
-
Uses of VerificationException in org.keycloak
Methods in org.keycloak that throw VerificationExceptionModifier and TypeMethodDescriptionRSATokenVerifier.getHeader()Deprecated.TokenVerifier.getHeader()RSATokenVerifier.getToken()Deprecated.TokenVerifier.getToken()RSATokenVerifier.parse()Deprecated.TokenVerifier.parse()booleanTokenVerifier.AudienceCheck.test(JsonWebToken t) booleanTokenVerifier.IssuedForCheck.test(JsonWebToken jsonWebToken) booleanPerforms a single check on the given token verifier.booleanTokenVerifier.RealmUrlCheck.test(JsonWebToken t) booleanTokenVerifier.TokenTypeCheck.test(JsonWebToken t) static voidRSATokenVerifier.verify()Deprecated.TokenVerifier.verify()voidTokenVerifier.verifySignature()static AccessTokenRSATokenVerifier.verifyToken(String tokenString, PublicKey publicKey, String realmUrl) Deprecated.static AccessTokenRSATokenVerifier.verifyToken(String tokenString, PublicKey publicKey, String realmUrl, boolean checkActive, boolean checkTokenType) Deprecated. -
Uses of VerificationException in org.keycloak.authentication
Subclasses of VerificationException in org.keycloak.authentication -
Uses of VerificationException in org.keycloak.authentication.actiontoken
Subclasses of VerificationException in org.keycloak.authentication.actiontokenModifier and TypeClassDescriptionclassToken verification exception that bears an error to be logged via event system and a message to show to the user e.g.Methods in org.keycloak.authentication.actiontoken that throw VerificationExceptionModifier and TypeMethodDescriptionActionTokenHandler.startFreshAuthenticationSession(T token, ActionTokenContext<T> tokenContext) Creates a fresh authentication session according to the information from the token. -
Uses of VerificationException in org.keycloak.broker.saml
Methods in org.keycloak.broker.saml that throw VerificationExceptionModifier and TypeMethodDescriptionprotected voidSAMLEndpoint.ArtifactBinding.verifySignature(String key, SAMLDocumentHolder documentHolder) protected abstract voidSAMLEndpoint.Binding.verifySignature(String key, SAMLDocumentHolder documentHolder) protected voidSAMLEndpoint.PostBinding.verifySignature(String key, SAMLDocumentHolder documentHolder) protected voidSAMLEndpoint.RedirectBinding.verifySignature(String key, SAMLDocumentHolder documentHolder) -
Uses of VerificationException in org.keycloak.crypto
Methods in org.keycloak.crypto that throw VerificationExceptionModifier and TypeMethodDescriptionstatic voidSignatureProvider.checkKeyForVerification(KeyWrapper key, String algorithm, String type) AsymmetricClientSignatureVerifierProvider.verifier(ClientModel client, JWSInput input) AsymmetricSignatureProvider.verifier(KeyWrapper key) ClientSignatureVerifierProvider.verifier(ClientModel client, JWSInput input) ECDSAClientSignatureVerifierProvider.verifier(ClientModel client, JWSInput input) ECDSASignatureProvider.verifier(KeyWrapper key) EdDSAClientSignatureVerifierProvider.verifier(ClientModel client, JWSInput input) EdDSASignatureProvider.verifier(KeyWrapper key) MacSecretClientSignatureVerifierProvider.verifier(ClientModel client, JWSInput input) MacSecretSignatureProvider.verifier(KeyWrapper key) SignatureProvider.verifier(KeyWrapper key) booleanAsymmetricSignatureVerifierContext.verify(byte[] data, byte[] signature) booleanClientECDSASignatureVerifierContext.verify(byte[] data, byte[] signature) booleanECDSASignatureVerifierContext.verify(byte[] data, byte[] signature) booleanMacSignatureVerifierContext.verify(byte[] data, byte[] signature) booleanServerECDSASignatureVerifierContext.verify(byte[] data, byte[] signature) booleanSignatureVerifierContext.verify(byte[] data, byte[] signature) Constructors in org.keycloak.crypto that throw VerificationExceptionModifierConstructorDescriptionClientAsymmetricSignatureVerifierContext(KeycloakSession session, ClientModel client, JWSInput input) ClientECDSASignatureVerifierContext(KeycloakSession session, ClientModel client, JWSInput input) ClientEdDSASignatureVerifierContext(KeycloakSession session, ClientModel client, JWSInput input) ClientMacSignatureVerifierContext(KeycloakSession session, ClientModel client, String algorithm) ServerAsymmetricSignatureVerifierContext(KeycloakSession session, String kid, String algorithm) ServerECDSASignatureVerifierContext(KeycloakSession session, String kid, String algorithm) ServerEdDSASignatureVerifierContext(KeycloakSession session, String kid, String algorithm) ServerMacSignatureVerifierContext(KeycloakSession session, String kid, String algorithm) -
Uses of VerificationException in org.keycloak.exceptions
Subclasses of VerificationException in org.keycloak.exceptionsModifier and TypeClassDescriptionclassException thrown for cases when token is invalid due to time constraints (expired, or not yet valid).classThrown when token signature is invalid.classException thrown on failed verification of a token. -
Uses of VerificationException in org.keycloak.forms.login.freemarker
Methods in org.keycloak.forms.login.freemarker that throw VerificationExceptionModifier and TypeMethodDescriptionDetachedInfoStateChecker.verifyStateCheckerParameter(String stateCheckerParam) -
Uses of VerificationException in org.keycloak.organization.utils
Methods in org.keycloak.organization.utils that throw VerificationExceptionModifier and TypeMethodDescriptionstatic InviteOrgActionTokenOrganizations.parseInvitationToken(HttpRequest request) -
Uses of VerificationException in org.keycloak.protocol.oid4vc.issuance.keybinding
Methods in org.keycloak.protocol.oid4vc.issuance.keybinding that throw VerificationExceptionModifier and TypeMethodDescriptionprotected booleanJwtCNonceHandler.checkAttributeEquality(String key, Object object, Object actualValue) protected SignatureVerifierContextAbstractProofValidator.getVerifier(JWK jwk, String jwsAlgorithm) static KeyAttestationJwtBodyAttestationValidatorUtil.validateAttestationJwt(String attestationJwt, KeycloakSession keycloakSession, VCIssuanceContext vcIssuanceContext, AttestationKeyResolver keyResolver) voidCNonceHandler.verifyCNonce(String cNonce, List<String> audiences, Map<String, Object> additionalDetails) must verify the validity of a cNonce value that has been issued by theCNonceHandler.buildCNonce(List, Map)method.voidJwtCNonceHandler.verifyCNonce(String cNonce, List<String> audiences, Map<String, Object> additionalDetails) -
Uses of VerificationException in org.keycloak.protocol.oidc
Methods in org.keycloak.protocol.oidc that throw VerificationException -
Uses of VerificationException in org.keycloak.protocol.saml
Methods in org.keycloak.protocol.saml that throw VerificationExceptionModifier and TypeMethodDescriptionstatic KeyLocatorSamlProtocolUtils.createKeyLocatorForClient(KeycloakSession session, ClientModel client, KeyUse use) static KeyLocatorSamlProtocolUtils.createKeyLocatorForClient(KeycloakSession session, SamlClient samlClient, KeyUse use) static PublicKeySamlProtocolUtils.getEncryptionKey(KeycloakSession session, ClientModel client) Returns public part of SAML encryption key from the client settings.static PublicKeySamlProtocolUtils.getEncryptionKey(KeycloakSession session, SamlClient samlClient) Returns public part of SAML encryption key from the client settings.static PublicKeySamlProtocolUtils.getPublicKey(ClientModel client, String attribute) static voidSamlProtocolUtils.setupEncryption(KeycloakSession session, SamlClient samlClient, BaseSAML2BindingBuilder<?> bindingBuilder) static voidSamlProtocolUtils.verifyDocumentSignature(KeycloakSession session, ClientModel client, Document document) Verifies a signature of the given SAML document using settings for the given client.static voidSamlProtocolUtils.verifyDocumentSignature(Document document, KeyLocator keyLocator) Verifies a signature of the given SAML document using keys obtained from the given key locator.static voidSamlProtocolUtils.verifyRedirectSignature(SAMLDocumentHolder documentHolder, KeyLocator locator, jakarta.ws.rs.core.MultivaluedMap<String, String> encodedParams, String paramKey) static voidSamlProtocolUtils.verifyRedirectSignature(SAMLDocumentHolder documentHolder, KeyLocator locator, jakarta.ws.rs.core.UriInfo uriInformation, String paramKey) protected abstract voidSamlService.BindingProtocol.verifySignature(SAMLDocumentHolder documentHolder, ClientModel client) protected voidSamlService.PostBindingProtocol.verifySignature(SAMLDocumentHolder documentHolder, ClientModel client) protected voidSamlService.RedirectBindingProtocol.verifySignature(SAMLDocumentHolder documentHolder, ClientModel client) -
Uses of VerificationException in org.keycloak.saml.processing.core.util
Methods in org.keycloak.saml.processing.core.util that throw VerificationExceptionModifier and TypeMethodDescriptionstatic booleanRedirectBindingSignatureUtil.validateRedirectBindingSignature(SignatureAlgorithm sigAlg, byte[] rawQueryBytes, byte[] decodedSignature, KeyLocator locator, String keyId) -
Uses of VerificationException in org.keycloak.sdjwt
Methods in org.keycloak.sdjwt that throw VerificationExceptionModifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.node.ArrayNodeSdJwtUtils.decodeDisclosureString(String disclosure) static Stringstatic longSdJwtUtils.readTimeClaim(com.fasterxml.jackson.databind.JsonNode payload, String claimName) voidSdJwt.verify(List<SignatureVerifierContext> issuerVerifyingKeys, IssuerSignedJwtVerificationOpts verificationOpts) Verifies SD-JWT as to whether the Issuer-signed JWT's signature and disclosures are valid.voidSdJws.verifyAge(int maxAge) Verifies that the JWS is not too old.voidSdJws.verifyExpClaim()voidSdJws.verifyIssClaim(List<String> issuers) Verifies that SD-JWT was issued by one of the provided issuers.voidSdJwtVerificationContext.verifyIssuance(List<SignatureVerifierContext> issuerVerifyingKeys, IssuerSignedJwtVerificationOpts issuerSignedJwtVerificationOpts, PresentationRequirements presentationRequirements) Verifies SD-JWT as to whether the Issuer-signed JWT's signature and disclosures are valid.voidSdJws.verifyIssuedAtClaim()voidSdJws.verifyNotBeforeClaim()voidSdJwtVerificationContext.verifyPresentation(List<SignatureVerifierContext> issuerVerifyingKeys, IssuerSignedJwtVerificationOpts issuerSignedJwtVerificationOpts, KeyBindingJwtVerificationOpts keyBindingJwtVerificationOpts, PresentationRequirements presentationRequirements) Verifies SD-JWT presentation.voidIssuerSignedJWT.verifySdHashAlgorithm()Verifies that the SD hash algorithm is understood and deemed secure.voidSdJwtFacade.verifySdJwt(SdJwt sdJwt, List<SignatureVerifierContext> issuerVerifyingKeys, IssuerSignedJwtVerificationOpts verificationOpts) Verify the SD-JWT using the provided signature verification keys.voidSdJws.verifySignature(SignatureVerifierContext verifier) voidSdJws.verifyVctClaim(List<String> vcts) Verifies that SD-JWT vct claim matches the expected one. -
Uses of VerificationException in org.keycloak.sdjwt.consumer
Methods in org.keycloak.sdjwt.consumer that throw VerificationExceptionModifier and TypeMethodDescriptionvoidPresentationRequirements.checkIfSatisfiedBy(com.fasterxml.jackson.databind.JsonNode disclosedPayload) Ensures that the configured requirements are satisfied by the presentation.voidSimplePresentationDefinition.checkIfSatisfiedBy(com.fasterxml.jackson.databind.JsonNode disclosedPayload) Checks if the provided JSON payload satisfies all required field patterns.JwtVcMetadataTrustedSdJwtIssuer.resolveIssuerVerifyingKeys(IssuerSignedJWT issuerSignedJWT) TrustedSdJwtIssuer.resolveIssuerVerifyingKeys(IssuerSignedJWT issuerSignedJWT) Resolves potential verifying keys to validate the Issuer-signed JWT.voidSdJwtPresentationConsumer.verifySdJwtPresentation(SdJwtVP sdJwtVP, PresentationRequirements presentationRequirements, List<TrustedSdJwtIssuer> trustedSdJwtIssuers, IssuerSignedJwtVerificationOpts issuerSignedJwtVerificationOpts, KeyBindingJwtVerificationOpts keyBindingJwtVerificationOpts) Verify SD-JWT presentation against specific requirements. -
Uses of VerificationException in org.keycloak.sdjwt.vp
Methods in org.keycloak.sdjwt.vp that throw VerificationExceptionModifier and TypeMethodDescriptionvoidSdJwtVP.verify(List<SignatureVerifierContext> issuerVerifyingKeys, IssuerSignedJwtVerificationOpts issuerSignedJwtVerificationOpts, KeyBindingJwtVerificationOpts keyBindingJwtVerificationOpts) Verifies SD-JWT presentation. -
Uses of VerificationException in org.keycloak.services.resources
Subclasses of VerificationException in org.keycloak.services.resourcesMethods in org.keycloak.services.resources that throw VerificationExceptionModifier and TypeMethodDescriptionstatic voidLoginActionsServiceChecks.checkIsClientValid(KeycloakSession session, ClientModel client) Verifies whether the client denoted by client ID in token'siss(issuedFor) field both exists and is enabled.static <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 voidLoginActionsServiceChecks.checkIsUserValid(KeycloakSession session, RealmModel realm, String userId, Consumer<UserModel> userSetter, EventBuilder event) Verifies whether the user given by ID both exists in the current realm.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.booleanLoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken.test(JsonWebToken t) booleanLoginActionsServiceChecks.IsActionRequired.test(JsonWebToken t) booleanLoginActionsServiceChecks.IsRedirectValid.test(JsonWebToken t) -
Uses of VerificationException in org.keycloak.services.util
Subclasses of VerificationException in org.keycloak.services.utilMethods in org.keycloak.services.util that throw VerificationExceptionModifier and TypeMethodDescriptionDPoPUtil.Validator.validate()static voidDPoPUtil.validateBinding(AccessToken token, DPoP dPoP)