Class EdDSASigningHandler
java.lang.Object
org.forgerock.json.jose.jws.handlers.EdDSASigningHandler
- All Implemented Interfaces:
 SigningHandler
Deprecated.
Signing handler for Edwards Curve DSA (EdDSA) as defined in RFC
 8037.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic EdDSASigningHandlerforSigning(byte[] privateKey) Deprecated.Initialises a signing handler for signing.static EdDSASigningHandlerforSigning(PrivateKey signingKey) Deprecated.Initialises a signing handler for signing.static EdDSASigningHandlerforVerification(byte[] publicKey) Deprecated.Initialises a signing handler for verification.static EdDSASigningHandlerforVerification(PublicKey publicKey) Deprecated.Initialises a signing handler for verification.byte[]sign(JwsAlgorithm algorithm, byte[] data) Deprecated.Signs the given raw data bytes using the Java Cryptographic algorithm defined by the JwsAlgorithm.booleanverify(JwsAlgorithm algorithm, byte[] data, byte[] sig) Deprecated.Verifies that the given signature is valid for the given data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.forgerock.json.jose.jws.handlers.SigningHandler
sign 
- 
Method Details
- 
forSigning
Deprecated.Initialises a signing handler for signing.- Parameters:
 privateKey- the private key bytes.- Returns:
 - the signing handler.
 
 - 
forSigning
Deprecated.Initialises a signing handler for signing.- Parameters:
 signingKey- the private key.- Returns:
 - the signing handler.
 
 - 
forVerification
Deprecated.Initialises a signing handler for verification.- Parameters:
 publicKey- the public key bytes.- Returns:
 - the signing handler.
 
 - 
forVerification
Deprecated.Initialises a signing handler for verification.- Parameters:
 publicKey- the public key.- Returns:
 - the signing handler.
 
 - 
sign
Deprecated.Description copied from interface:SigningHandlerSigns 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.Description copied from interface:SigningHandlerVerifies 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.sig- The signature of the data.- Returns:
 trueif the signature is a valid signature of the data.
 
 - 
 
SecretEdDSASigningHandlerinstead.