Class RSASigningHandler
java.lang.Object
org.forgerock.json.jose.jws.handlers.RSASigningHandler
- All Implemented Interfaces:
 SigningHandler
Deprecated.
An implementation of the SigningHandler which can sign and verify using algorithms from the RSA family.
- Since:
 - 2.0.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionRSASigningHandler(Key key) Deprecated.Constructs a new RSASigningHandler.RSASigningHandler(Key key, SignatureUtil unused) Deprecated.Please useRSASigningHandler(Key). - 
Method Summary
Modifier and TypeMethodDescriptionbyte[]sign(JwsAlgorithm algorithm, byte[] data) Deprecated.Signs the given raw data bytes using the Java Cryptographic algorithm defined by the JwsAlgorithm.byte[]sign(JwsAlgorithm algorithm, String data) Deprecated.Signs the given String data using the Java Cryptographic algorithm defined by the JwsAlgorithm.booleanverify(JwsAlgorithm algorithm, byte[] data, byte[] signature) Deprecated.Verifies that the given signature is valid for the given data. 
- 
Constructor Details
- 
RSASigningHandler
Deprecated.Constructs a new RSASigningHandler.- Parameters:
 key- The key used to sign or verify the signature.
 - 
RSASigningHandler
Deprecated.Please useRSASigningHandler(Key).Constructs a new RSASigningHandler.- Parameters:
 key- The key used to sign or verify the signature.unused- No longer used.
 
 - 
 - 
Method Details
- 
sign
Deprecated.Signs the given String data using the Java Cryptographic algorithm defined by the JwsAlgorithm. The signature is created using the given private key.- Specified by:
 signin interfaceSigningHandler- Parameters:
 algorithm- The JwsAlgorithm defining the Java Cryptographic algorithm.data- The data to be signed.- Returns:
 - A byte array of the signature.
 
 - 
sign
Deprecated.Signs the given raw data bytes using the Java Cryptographic algorithm defined by the JwsAlgorithm.- Specified by:
 signin interfaceSigningHandler- Parameters:
 algorithm- the JWS signature algorithm to use.data- the raw data to sign.- Returns:
 - the signature.
 
 - 
verify
Deprecated.Verifies that the given signature is valid for the given data.Uses the Java Cryptographic algorithm defined by the JwsAlgorithm and private key to create a new signature of the data to compare against the given signature to see if they are identical.
- Specified by:
 verifyin interfaceSigningHandler- Parameters:
 algorithm- The JwsAlgorithm defining the JavaCryptographic algorithm.data- The data that was signed.signature- The signature of the data.- Returns:
 trueif the signature is a valid signature of the data.
 
 - 
 
SecretRSASigningHandlerinstead