Uses of Enum Class
org.forgerock.json.jose.jws.JwsAlgorithm
Packages that use JwsAlgorithm
Package
Description
Classes and interfaces for builder to build JWTs using a fluent API.
Classes and interfaces for JWT signing and JWS'.
Signing Handler classes for each possible signing algorithm.
JWT implementation(s) of
TokenHandler.-
Uses of JwsAlgorithm in org.forgerock.json.jose.builders
Methods in org.forgerock.json.jose.builders with parameters of type JwsAlgorithmModifier and TypeMethodDescriptionEncryptedJwtBuilder.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 JwsAlgorithmModifierConstructorDescriptionEncryptedThenSignedJwtBuilder(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. -
Uses of JwsAlgorithm in org.forgerock.json.jose.jws
Methods in org.forgerock.json.jose.jws that return JwsAlgorithmModifier and TypeMethodDescriptionJwsHeader.getAlgorithm()Gets the Algorithm set in the JWT header.static JwsAlgorithmJwsAlgorithm.getJwsAlgorithm(String algorithm) Deprecated.Replaced byparseCryptographicAlgorithm(String)SupportedEllipticCurve.getJwsAlgorithm()Returns the JwsAlgorithm that corresponds to this elliptic curve.static JwsAlgorithmJwsAlgorithm.parseCryptographicAlgorithm(String algorithm) Parses the given algorithm string to find the matching Java Cryptographic algorithm name.static JwsAlgorithmReturns the enum constant of this class with the specified name.static JwsAlgorithm[]JwsAlgorithm.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of JwsAlgorithm in org.forgerock.json.jose.jws.handlers
Methods in org.forgerock.json.jose.jws.handlers with parameters of type JwsAlgorithmModifier and TypeMethodDescriptionbyte[]ECDSASigningHandler.sign(JwsAlgorithm algorithm, byte[] data) byte[]ECDSASigningHandler.sign(JwsAlgorithm algorithm, String data) byte[]HmacSigningHandler.sign(JwsAlgorithm algorithm, byte[] data) Signs the given raw data bytes using the Java Cryptographic algorithm defined by the JwsAlgorithm.byte[]HmacSigningHandler.sign(JwsAlgorithm algorithm, String data) Signs the given String data using the Java Cryptographic algorithm defined by the JwsAlgorithm.byte[]NOPSigningHandler.sign(JwsAlgorithm algorithm, byte[] data) Returns an empty byte array.byte[]NOPSigningHandler.sign(JwsAlgorithm algorithm, String data) Simply returns a byte array of a UTF-8 empty string.byte[]RSASigningHandler.sign(JwsAlgorithm algorithm, byte[] data) Signs the given raw data bytes using the Java Cryptographic algorithm defined by the JwsAlgorithm.byte[]RSASigningHandler.sign(JwsAlgorithm algorithm, String data) Signs the given String data using the Java Cryptographic algorithm defined by the JwsAlgorithm.byte[]SigningHandler.sign(JwsAlgorithm algorithm, byte[] data) Signs the given raw data bytes using the Java Cryptographic algorithm defined by the JwsAlgorithm.byte[]SigningHandler.sign(JwsAlgorithm algorithm, String data) Signs the given String data using the Java Cryptographic algorithm defined by the JwsAlgorithm.booleanECDSASigningHandler.verify(JwsAlgorithm algorithm, byte[] data, byte[] signature) booleanHmacSigningHandler.verify(JwsAlgorithm algorithm, byte[] data, byte[] signature) Verifies that the given signature is valid for the given data.booleanNOPSigningHandler.verify(JwsAlgorithm algorithm, byte[] data, byte[] signature) Verifies that the signature length is zero.booleanRSASigningHandler.verify(JwsAlgorithm algorithm, byte[] data, byte[] signature) Verifies that the given signature is valid for the given data.booleanSigningHandler.verify(JwsAlgorithm algorithm, byte[] data, byte[] signature) Verifies that the given signature is valid for the given data. -
Uses of JwsAlgorithm in org.forgerock.json.jose.tokenhandler
Constructors in org.forgerock.json.jose.tokenhandler with parameters of type JwsAlgorithmModifierConstructorDescriptionJwtTokenHandler(JweAlgorithm jweAlgorithm, EncryptionMethod jweMethod, KeyPair jweKeyPair, JwsAlgorithm jwsAlgorithm, SigningHandler jwsHandler) Constructs a new JWT token handler that never expires.JwtTokenHandler(JweAlgorithm jweAlgorithm, EncryptionMethod jweMethod, KeyPair jweKeyPair, JwsAlgorithm jwsAlgorithm, SigningHandler jwsHandler, org.wrensecurity.guava.common.base.Optional<Long> tokenLifeTimeInSeconds) Constructs a new JWT token handler.
EncryptedJwtBuilder.signedWith(SigningHandler, JwsAlgorithm)instead.