Class NOPSigningHandler
java.lang.Object
org.forgerock.json.jose.jws.handlers.NOPSigningHandler
- All Implemented Interfaces:
SigningHandler
Deprecated.
This algorithm is inherently insecure and shouldn't be used.
An implementation of the SigningHandler which does not perform any signing or verifying.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
sign
(JwsAlgorithm algorithm, byte[] data) Deprecated.Returns an empty byte array.byte[]
sign
(JwsAlgorithm algorithm, String data) Deprecated.Simply returns a byte array of a UTF-8 empty string.boolean
verify
(JwsAlgorithm algorithm, byte[] data, byte[] signature) Deprecated.Verifies that the signature length is zero.
-
Constructor Details
-
NOPSigningHandler
public NOPSigningHandler()Deprecated.
-
-
Method Details
-
sign
Deprecated.Simply returns a byte array of a UTF-8 empty string.- Specified by:
sign
in 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.Returns an empty byte array.- Specified by:
sign
in interfaceSigningHandler
- Parameters:
algorithm
- the JWS signature algorithm to use.data
- the raw data to sign.- Returns:
- the signature.
-
verify
Deprecated.Verifies that the signature length is zero.- Specified by:
verify
in interfaceSigningHandler
- Parameters:
algorithm
- The JwsAlgorithm defining the JavaCryptographic algorithm.data
- The data that was signed.signature
- The signature of the data.- Returns:
true
if the signature is a valid signature of the data.
-