public class SigningParameters
extends java.lang.Object
Constructor and Description |
---|
SigningParameters(java.security.PrivateKey signerKey, java.security.cert.X509Certificate signerCert, oracle.security.crypto.core.AlgorithmIdentifier digestAlgId, oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId)
Creates a
SigningParameters object specifying the signer's key, the signer's X.509 certificate, the digest algorithm, and the digest encryption algorithm. |
Modifier and Type | Method and Description |
---|---|
oracle.security.crypto.core.AlgorithmIdentifier |
getDigestAlgId()
Returns digest algorithm for the signature.
|
oracle.security.crypto.core.AlgorithmIdentifier |
getDigestEncryptionAlgId()
Returns digest encryption algorithm for the signature.
|
java.security.cert.X509Certificate |
getSignerCert()
Returns the signer's certificate.
|
java.security.PrivateKey |
getSignerKey()
Returns the signer's private key.
|
void |
setDigestAlgId(oracle.security.crypto.core.AlgorithmIdentifier digestAlgId)
Sets the digest algorithm.
|
void |
setDigestEncryptionAlgId(oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId)
Sets the digest encryption algorithm.
|
void |
setSignerCert(java.security.cert.X509Certificate signerCert)
Sets the signer's certificate.
|
void |
setSignerKey(java.security.PrivateKey signerKey)
Sets the signer's private key.
|
public SigningParameters(java.security.PrivateKey signerKey, java.security.cert.X509Certificate signerCert, oracle.security.crypto.core.AlgorithmIdentifier digestAlgId, oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId)
SigningParameters
object specifying the signer's key, the signer's X.509 certificate, the digest algorithm, and the digest encryption algorithm. Supported digest algorithms:
signerKey
- The signer's private key.signerCert
- The signer's X.509 certificate.digestAlgId
- The digest algorithm.digestEncryptionAlgId
- The digest encryption algorithm.public void setSignerKey(java.security.PrivateKey signerKey)
signerKey
- The signer's private key.public java.security.PrivateKey getSignerKey()
public void setSignerCert(java.security.cert.X509Certificate signerCert)
signerCert
- The signer's X509 certificate.public java.security.cert.X509Certificate getSignerCert()
public void setDigestAlgId(oracle.security.crypto.core.AlgorithmIdentifier digestAlgId)
digestAlgId
- The digest algorithm for the signature.public oracle.security.crypto.core.AlgorithmIdentifier getDigestAlgId()
public void setDigestEncryptionAlgId(oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId)
digestEncryptionAlgId
- The digest encryption algorithm for the signature.public oracle.security.crypto.core.AlgorithmIdentifier getDigestEncryptionAlgId()