|
Oracle Security Developer Tools CMS Java API Reference 10g Release 2 (10.1.2.0.2) B15564-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cms.CMSSignerInfoSpec
This class encapsulates message signer information.
CMSSignerInfo
Constructor Summary | |
CMSSignerInfoSpec(oracle.security.crypto.cert.AttributeSet authenticatedAttributes, PrivateKey signerKey, oracle.security.crypto.cert.X509 signerCert, AlgorithmIdentifier digestAlgID, AlgorithmIdentifier digestEncryptionAlgID, oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes) Creates a CMSSignerInfoSpec . |
|
CMSSignerInfoSpec(oracle.security.crypto.cert.AttributeSet authenticatedAttributes, PrivateKey signerKey, oracle.security.crypto.cert.X509 signerCert, AlgorithmIdentifier digestAlgID, 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. |
AlgorithmIdentifier |
getDigestAlgID() Returns the digest algorithm. |
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. |
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, PrivateKey signerKey, oracle.security.crypto.cert.X509 signerCert, AlgorithmIdentifier digestAlgID, AlgorithmIdentifier digestEncryptionAlgID, oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes)
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.
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.public CMSSignerInfoSpec(oracle.security.crypto.cert.AttributeSet authenticatedAttributes, PrivateKey signerKey, oracle.security.crypto.cert.X509 signerCert, AlgorithmIdentifier digestAlgID, AlgorithmIdentifier digestEncryptionAlgID, oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes, boolean useSPKI)
CMSSignerInfoSpec
.
Please ensure that the signed (authenticated) attributes do not contain the messageDigest
or contentType
attributes, as these will be generated automatically.
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.Method Detail |
public int hashCode()
public boolean equals(java.lang.Object obj)
true
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 AlgorithmIdentifier getDigestAlgID()
public AlgorithmIdentifier getDigestEncryptionAlgID()
public PrivateKey getSignerKey()
public boolean isSPKI()
true
if the signer identifier uses SPKI; false
otherwise.
|
Oracle Security Developer Tools CMS Java API Reference 10g Release 2 (10.1.2.0.2) B15564-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |