Uses of Interface
org.forgerock.json.jose.jws.handlers.SigningHandler
Packages that use SigningHandler
Package
Description
Classes and interfaces for builder to build JWTs using a fluent API.
Classes and interfaces for JWT encryption and JWEs.
Classes and interfaces for JWT signing and JWS'.
Signing Handler classes for each possible signing algorithm.
JWT implementation(s) of
TokenHandler.-
Uses of SigningHandler in org.forgerock.json.jose.builders
Methods in org.forgerock.json.jose.builders with parameters of type SigningHandlerModifier and TypeMethodDescriptionJwtBuilderFactory.jws(SigningHandler signingHandler) Creates a builder for building a signed JWT into a base64url UTF-8 encoded JWT string.EncryptedJwtBuilder.sign(SigningHandler signingHandler, JwsAlgorithm jwsAlgorithm) Deprecated.EncryptedJwtBuilder.signedWith(SigningHandler signingHandler, JwsAlgorithm jwsAlgorithm) Returns anEncryptedThenSignedJwtBuilderthat will build a signed JWT with this builder's encrypted JWT as its payload.Constructors in org.forgerock.json.jose.builders with parameters of type SigningHandlerModifierConstructorDescriptionEncryptedThenSignedJwtBuilder(EncryptedJwtBuilder encryptedJwtBuilder, SigningHandler signingHandler, JwsAlgorithm jwsAlgorithm) Constructs a new SignedEncryptedJwtBuilder that will use the given EncryptedJwtBuilder, to build the nested Encrypted JWT, and the private key and JwsAlgorithm to sign the outer JWT.SignedEncryptedJwtBuilder(EncryptedJwtBuilder encryptedJwtBuilder, SigningHandler signingHandler, JwsAlgorithm jwsAlgorithm) Deprecated.Constructs a new SignedEncryptedJwtBuilder that will use the given EncryptedJwtBuilder, to build the nested Encrypted JWT, and the private key and JwsAlgorithm to sign the outer JWT.SignedJwtBuilderImpl(SigningHandler signingHandler) Constructs a new SignedJwtBuilderImpl that will use the given private key to sign the JWT. -
Uses of SigningHandler in org.forgerock.json.jose.jwe
Methods in org.forgerock.json.jose.jwe with parameters of type SigningHandlerModifier and TypeMethodDescriptionbooleanSignedThenEncryptedJwt.decryptAndVerify(Key decryptionKey, SigningHandler signingHandler) Deprecated.booleanSignedThenEncryptedJwt.verify(SigningHandler signingHandler) Verifies that the signature is valid on the nested signed JWT. -
Uses of SigningHandler in org.forgerock.json.jose.jws
Methods in org.forgerock.json.jose.jws that return SigningHandlerModifier and TypeMethodDescriptionSigningManager.newEcdsaSigningHandler(ECPrivateKey key) Deprecated.useSigningManager.newEcdsaSigningHandler(SigningKey)} insteadSigningManager.newEcdsaSigningHandler(PrivateKey key) Deprecated.useSigningManager.newEcdsaSigningHandler(SigningKey)} insteadSigningManager.newEcdsaSigningHandler(SigningKey key) Constructs a new handler for signing ES256 signatures.SigningManager.newEcdsaVerificationHandler(ECPublicKey key) Deprecated.SigningManager.newEcdsaVerificationHandler(VerificationKey key) Constructs a new handler for verifying ES256 signatures.SigningManager.newEdDsaSigningHandler(byte[] privateKey) Deprecated.SigningManager.newEdDsaSigningHandler(SigningKey signingKey) Constructs a new handler for signing EdDSA signatures.SigningManager.newEdDsaVerificationHandler(byte[] publicKey) Deprecated.SigningManager.newEdDsaVerificationHandler(VerificationKey verificationKey) Constructs a new handler for verifying EdDSA signatures.SigningManager.newHmacSigningHandler(byte[] sharedSecret) Deprecated.useSigningManager.newHmacSigningHandler(SigningKey)insteadSigningManager.newHmacSigningHandler(SecretKey secretKey) Deprecated.useSigningManager.newHmacSigningHandler(SigningKey)insteadSigningManager.newHmacSigningHandler(SigningKey key) Constructs a new SecretHmacSigningHandler configured for signature validation.SigningManager.newHmacVerificationHandler(VerificationKey key) Constructs a new SecretHmacSigningHandler configured for signature validation.SigningManager.newNopSigningHandler()Deprecated.This method is inherently insecure and shouldn't be used.SigningManager.newRsaSigningHandler(Key key) Deprecated.SigningManager.newRsaSigningHandler(SigningKey key) Constructs a new SecretRSASigningHandler configured for signature validation.SigningManager.newRsaVerificationHandler(VerificationKey key) Constructs a new SecretRSASigningHandler configured for signature validation.SigningManager.newSigningHandler(Key key) Deprecated.UseSigningManager.newSigningHandler(SigningKey)insteadSigningManager.newSigningHandler(JWK jwk) Returns a signing handler from the given JSON Web Key (JWK) which will be used to sign a JWT.SigningManager.newSigningHandler(JWK jwk, Purpose<SigningKey> purpose) Returns a signing handler from the given JSON Web Key (JWK) which will be used to sign a JWT.SigningManager.newSigningHandler(JWK jwk, Purpose<SigningKey> purpose, Instant expiry) Returns a signing handler from the given JSON Web Key (JWK) which will be used to sign a JWT.SigningManager.newSigningHandler(SigningKey key) Returns the signing handler from the given SigningKey which will be used to sign the JWT.SigningManager.newVerificationHandler(Key key) Deprecated.SigningManager.newVerificationHandler(JWK jwk) Returns the signing handler from the given JSON Web Key (JWK) which will be used to verify the JWT.SigningManager.newVerificationHandler(JWK jwk, Purpose<VerificationKey> purpose) Returns a signing handler from the given JSON Web Key (JWK) which will be used to verify a JWT.SigningManager.newVerificationHandler(JWK jwk, Purpose<VerificationKey> purpose, Instant expiry) Returns a signing handler from the given JSON Web Key (JWK) which will be used to verify a JWT.SigningManager.newVerificationHandler(VerificationKey key) Returns the signing handler from the given VerificationKey which will be used to verify the JWT.Methods in org.forgerock.json.jose.jws that return types with arguments of type SigningHandlerModifier and TypeMethodDescriptionSigningManager.newSigningHandler(Purpose<SigningKey> purpose) Constructs a new SigningHandler configured for signing with the provided secret purpose.SigningManager.newSigningHandler(SecretReference<SigningKey> secretReference) Constructs a new SigningHandler configured for signing with the provided secret reference.SigningManager.newVerificationHandler(Purpose<VerificationKey> purpose, String keyId) Constructs a new SigningHandler configured for verifying with the provided secret purpose.SigningManager.newVerificationHandler(ValidSecretsReference<VerificationKey, NeverThrowsException> validSecrets) Constructs a new SigningHandler configured for verifying with the provided valid secrets reference.Methods in org.forgerock.json.jose.jws with parameters of type SigningHandlerModifier and TypeMethodDescriptionbooleanSignedJwt.verify(SigningHandler signingHandler) Verifies that the JWS signature is valid for the contents of its payload.Constructors in org.forgerock.json.jose.jws with parameters of type SigningHandlerModifierConstructorDescriptionEncryptedThenSignedJwt(JwsHeader header, EncryptedJwt nestedJwe, SigningHandler signingHandler) Constructs a fresh, new SignedEncryptedJwt from the given JwsHeader and nested Encrypted JWT.SignedEncryptedJwt(JwsHeader header, EncryptedJwt nestedJwe, SigningHandler signingHandler) Deprecated.Constructs a fresh, new SignedEncryptedJwt from the given JwsHeader and nested Encrypted JWT.SignedJwt(JwsHeader header, JwtClaimsSet claimsSet, SigningHandler signingHandler) Constructs a fresh, new SignedJwt from the given JwsHeader and JwtClaimsSet.protectedSignedJwt(JwsHeader header, Payload nestedPayload, SigningHandler signingHandler) Constructs a fresh, new SignedJwt from the given JwsHeader and nested Encrypted JWT. -
Uses of SigningHandler in org.forgerock.json.jose.jws.handlers
Classes in org.forgerock.json.jose.jws.handlers that implement SigningHandlerModifier and TypeClassDescriptionclassDeprecated.UseSecretECDSASigningHandlerinsteadfinal classDeprecated.UseSecretEdDSASigningHandlerinstead.classDeprecated.UseSecretHmacSigningHandlerinsteadclassDeprecated.This algorithm is inherently insecure and shouldn't be used.classDeprecated.UseSecretRSASigningHandlerinsteadclassElliptic Curve Digital Signature Algorithm (ECDSA) signing and verification.classSigning handler for Edwards Curve DSA (EdDSA) as defined in RFC 8037.classAn implementation of the SigningHandler which can sign and verify using algorithms from the HMAC family.classAnSecret-based implementation of the SigningHandler which can sign and verify using algorithms from the RSA family.classProvidesSecret-based signing and verification code base. -
Uses of SigningHandler in org.forgerock.json.jose.tokenhandler
Constructors in org.forgerock.json.jose.tokenhandler with parameters of type SigningHandlerModifierConstructorDescriptionJwtTokenHandler(JweAlgorithm jweAlgorithm, EncryptionMethod jweMethod, KeyPair jweKeyPair, JwsAlgorithm jwsAlgorithm, SigningHandler jwsHandler) Deprecated.Constructs a new JWT token handler that never expires.JwtTokenHandler(JweAlgorithm jweAlgorithm, EncryptionMethod jweMethod, KeyPair jweKeyPair, JwsAlgorithm jwsAlgorithm, SigningHandler jwsHandler, Optional<Long> tokenLifeTimeInSeconds, int tokenStatePaddingLength) Deprecated.Constructs a new JWT token handler.
EncryptedJwtBuilder.signedWith(SigningHandler, JwsAlgorithm)instead.