| Modifier and Type | Method and Description |
|---|---|
Algorithm |
getAlgorithm()
Return the algorithm supported by this signer.
|
static RSASigner |
newSHA256Signer(String privateKey)
Build a new RSA signer using a SHA-256 hash.
|
static RSASigner |
newSHA384Signer(String privateKey)
Build a new RSA signer using a SHA-384 hash.
|
static RSASigner |
newSHA512Signer(String privateKey)
Build a new RSA signer using a SHA-512 hash.
|
byte[] |
sign(String message)
Sign the provided message and return the signature.
|
public static RSASigner newSHA256Signer(String privateKey)
privateKey - The private key PEM expected to be in PKCS#1 or PKCS#8 format.public static RSASigner newSHA384Signer(String privateKey)
privateKey - The private key PEM expected to be in PKCS#1 or PKCS#8 format.public static RSASigner newSHA512Signer(String privateKey)
privateKey - The private key PEM expected to be in PKCS#1 or PKCS#8 format.public Algorithm getAlgorithm()
SignergetAlgorithm in interface SignerCopyright © 2017. All rights reserved.