|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-05 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
oracle.security.crypto.cms.CMSSignerInfoSpec
public final class CMSSignerInfoSpec
This class encapsulates message signer information.
CMSSignerInfo| Constructor Summary | |
|---|---|
CMSSignerInfoSpec(oracle.security.crypto.cert.AttributeSet authenticatedAttributes, java.security.PrivateKey signerKey, java.security.cert.X509Certificate signerCert, oracle.security.crypto.core.AlgorithmIdentifier digestAlgID, oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgID, oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes)Creates a CMSSignerInfoSpec. |
|
CMSSignerInfoSpec(oracle.security.crypto.cert.AttributeSet authenticatedAttributes, java.security.PrivateKey signerKey, java.security.cert.X509Certificate signerCert, oracle.security.crypto.core.AlgorithmIdentifier digestAlgID, oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgID, oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes, boolean useSPKI)Creates a CMSSignerInfoSpec. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)Indicates whether some other object is "equal to" this one. |
byte[] |
generate160BitSPKI()Generates the 160 bit Subject Public Key Identifier as per RFC 2459 which is a 160 bit SHA-1 hash of the value of the BIT STRING. |
byte[] |
generate64BitSPKI()Generates the 64 bit Subject Public Key Identifier as per RFC 2459 which is 0100 followed by the least significant 60 bits of SHA-1 hash of the value of the BIT STRING. |
oracle.security.crypto.cert.AttributeSet |
getAuthenticatedAttributes()Returns the signed attributes. |
oracle.security.crypto.core.AlgorithmIdentifier |
getDigestAlgID()Returns the digest algorithm. |
oracle.security.crypto.core.AlgorithmIdentifier |
getDigestEncryptionAlgID()Returns the signature algorithm. |
oracle.security.crypto.cert.X500Name |
getIssuer()Returns the distinguished name of the CA which issued the signer's certificate. |
java.math.BigInteger |
getSerialNo()Returns the serial number of the signer's certificate. |
java.security.PrivateKey |
getSignerKey()Returns the signer's private key. |
oracle.security.crypto.cert.AttributeSet |
getUnauthenticatedAttributes()Returns the unsigned attributes. |
int |
hashCode()Returns a hash code value for this object. |
boolean |
isSPKI()Checks if Subject Public Key Identifier is being used as the signer identifier. |
boolean |
isSPKI64() |
void |
useSPKI64(boolean useSPKI64)Specifies if the 64 bit Subject Public Key Identifier is to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CMSSignerInfoSpec(oracle.security.crypto.cert.AttributeSet authenticatedAttributes,
java.security.PrivateKey signerKey,
java.security.cert.X509Certificate signerCert,
oracle.security.crypto.core.AlgorithmIdentifier digestAlgID,
oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgID,
oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes)
throws java.security.NoSuchAlgorithmException
CMSSignerInfoSpec.
Signed(Authenticated) Attributes must not contain the messageDigest or contentType attributes, as these will be generated automatically.
Issuer and Serial Number (IASN) will be used as the Signer Identifier.
This method will return only if the signature is valid.
Note the changes in the Method signature
Previouslypublic CMSSignerInfoSpec (AttributeSet , oracle.security.crypto.core.PrivateKey, X509, AlgorithmIdentifier , AlgorithmIdentifier, AttributeSet)
Nowpublic CMSSignerInfoSpec (AttributeSet , java.security.PrivateKey, X509Certificate, AlgorithmIdentifier , AlgorithmIdentifier, AttributeSet)
Note the changes in the exceptions
Exceptions included -- NoSuchAlgorithmException
authenticatedAttributes - The set of authenticated attributes.signerKey - The private key to sign with.signerCert - The signer's X.509 certificate.digestAlgID - The message digest algorithm.digestEncryptionAlgID - The cipher algorithm with which to encrypt the result of the message digest.unauthenticatedAttributes - The set of unauthenticated attributes.java.security.NoSuchAlgorithmException - Algorithm not supported
public CMSSignerInfoSpec(oracle.security.crypto.cert.AttributeSet authenticatedAttributes,
java.security.PrivateKey signerKey,
java.security.cert.X509Certificate signerCert,
oracle.security.crypto.core.AlgorithmIdentifier digestAlgID,
oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgID,
oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes,
boolean useSPKI)
throws java.security.NoSuchAlgorithmException
CMSSignerInfoSpec.
Please ensure that the signed (authenticated) attributes do not contain the messageDigest or contentType attributes, as these will be generated automatically. p>This method will return only if the signature is valid.
Note the changes in the Method signature
Previouslypublic CMSSignerInfoSpec (AttributeSet , oracle.security.crypto.core.PrivateKey, X509, AlgorithmIdentifier , AlgorithmIdentifier, AttributeSet , boolean)
Nowpublic CMSSignerInfoSpec (AttributeSet , java.security.PrivateKey, X509Certificate, AlgorithmIdentifier , AlgorithmIdentifier, AttributeSet,boolean)
Note the changes in the exceptions
Exceptions included -- NoSuchAlgorithmException
authenticatedAttributes - The set of authenticated attributes.signerKey - The private key to sign with.signerCert - The signer's X.509 certificate.digestAlgID - The message digest algorithm.digestEncryptionAlgID - The cipher algorithm with which to encrypt the result of the message digest.unauthenticatedAttributes - The set of unauthenticated attributes.useSPKI - If true Subject Public Key Identifier (SPKI) will be used as the Signer Identifier; If false the Issuer and Serial Number (IASN) will be used.java.security.NoSuchAlgorithmException - Algorithm not supported| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objecttrue if this object is the same as the obj argument; false otherwise.public byte[] generate64BitSPKI()
public byte[] generate160BitSPKI()
public void useSPKI64(boolean useSPKI64)
useSPKI64 - If true the 64 bit SPKI will be used; If false the 160 bit SPKI will be usedpublic boolean isSPKI64()
public oracle.security.crypto.cert.X500Name getIssuer()
public java.math.BigInteger getSerialNo()
public oracle.security.crypto.cert.AttributeSet getAuthenticatedAttributes()
null otherwise.public oracle.security.crypto.cert.AttributeSet getUnauthenticatedAttributes()
null otherwise.public oracle.security.crypto.core.AlgorithmIdentifier getDigestAlgID()
public oracle.security.crypto.core.AlgorithmIdentifier getDigestEncryptionAlgID()
public java.security.PrivateKey getSignerKey()
public boolean isSPKI()
true if the signer identifier uses SPKI; false otherwise.
|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-05 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||