Package com.yahoo.security
Class SignatureUtils
java.lang.Object
com.yahoo.security.SignatureUtils
Misc signature utils
- Author:
- bjorncs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SignaturecreateSigner(PrivateKey key) Returns a signature instance which computes a hash of its content, before signing with the given private key.static SignaturecreateSigner(PrivateKey key, SignatureAlgorithm algorithm) Returns a signature instance which computes a hash of its content, before signing with the given private key.static SignaturecreateVerifier(PublicKey key) Returns a signature instance which computes a hash of its content, before verifying with the given public key.static SignaturecreateVerifier(PublicKey key, SignatureAlgorithm algorithm) Returns a signature instance which computes a hash of its content, before verifying with the given public key.
-
Constructor Details
-
SignatureUtils
public SignatureUtils()
-
-
Method Details
-
createSigner
Returns a signature instance which computes a hash of its content, before signing with the given private key. -
createSigner
Returns a signature instance which computes a hash of its content, before signing with the given private key. -
createVerifier
Returns a signature instance which computes a hash of its content, before verifying with the given public key. -
createVerifier
Returns a signature instance which computes a hash of its content, before verifying with the given public key.
-