|
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.CMSRecipientInfo
oracle.security.crypto.cms.CMSKeyTransRecipientInfo
This class encapsulates recipient information using the Key Transport key exchange mechanism.
CMSRecipientInfo, CMSKeyTransRecipientInfoSpec| Constructor Summary | |
CMSKeyTransRecipientInfo()Creates an empty CMSKeyTransRecipientInfo. |
|
CMSKeyTransRecipientInfo(java.io.InputStream is)Creates a CMSKeyTransRecipientInfo by reading the BER encoding from the specified input stream. |
|
CMSKeyTransRecipientInfo(SymmetricKey contentEncryptionKey, PublicKey keyEncryptionKey, byte[] spki, AlgorithmIdentifier keyEncryptionAlgID)Creates a CMSKeyTransRecipientInfo. |
|
CMSKeyTransRecipientInfo(SymmetricKey contentEncryptionKey, PublicKey keyEncryptionKey, oracle.security.crypto.cert.IssuerAndSerialNo iasn, AlgorithmIdentifier keyEncryptionAlgID)Creates a CMSKeyTransRecipientInfo. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)Indicates whether some other object is "equal to" this one. |
byte[] |
getContentAuthenticationKey(PrivateKey keyDecryptionKey)Derives the content authentication key, by decryption the encrypted key stored in this object with the given key decryption key. |
SymmetricKey |
getContentEncryptionKey(PrivateKey keyDecryptionKey)Derives the content encryption key, by decryption the encrypted key stored in this object with the given key decryption key. |
byte[] |
getEncryptedKey()Returns the encrypted content encryption key. |
oracle.security.crypto.cert.IssuerAndSerialNo |
getIASN()Returns the IssuerAndSerialNo recipient identifier. |
oracle.security.crypto.cert.X500Name |
getIssuer()Returns the issuer of the recipient's certificate. |
AlgorithmIdentifier |
getKeyEncryptionAlgID()Returns the Key Wrapping or Encipherment Algorithm. |
java.math.BigInteger |
getSerialNo()Returns the serial number of the recipient's certificate. |
byte[] |
getSPKI()Returns the Subject Public Key Identifier. |
ASN1Integer |
getVersion()Deprecated. As of Phaos CMS 2.0.1, replaced by getVersionNumber() |
java.math.BigInteger |
getVersionNumber()Returns the version number. |
int |
hashCode()Returns a hash code value for this object. |
protected void |
inputRecipientInfo(java.io.InputStream is)Reads the CMSRecipientInfo structure. |
int |
length()Returns the length of this object's encoding. |
void |
output(java.io.OutputStream os)Output this object's encoding to the specified output stream. |
java.lang.String |
toString()A brief textual description of this object. |
boolean |
useSPKI64()Indicated if SPKI is being used as the Recipient Identifier. |
| Methods inherited from class oracle.security.crypto.cms.CMSRecipientInfo |
input, inputInstance |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CMSKeyTransRecipientInfo()
CMSKeyTransRecipientInfo.
public CMSKeyTransRecipientInfo(SymmetricKey contentEncryptionKey,
PublicKey keyEncryptionKey,
oracle.security.crypto.cert.IssuerAndSerialNo iasn,
AlgorithmIdentifier keyEncryptionAlgID)
throws CipherException,
InvalidKeyException,
AlgorithmIdentifierException
CMSKeyTransRecipientInfo.contentEncryptionKey - The encryption key.keyEncryptionKey - The key encipherment(wrap) key.iasn - Issuer and Serial Number (IASN) of the recipient's certificate.keyEncryptionAlgID - The key encipherment(wrap) algorithm.AlgorithmIdentifierException - The encryption algorithm is not supported.CipherException - An error occurred during encryption.InvalidKeyException - The encryption keys are not valid.
public CMSKeyTransRecipientInfo(java.io.InputStream is)
throws java.io.IOException
CMSKeyTransRecipientInfo by reading the BER encoding from the specified input stream.is - The input stream.java.io.IOException - If the input encoding is incorrect or an I/O error occurs.
public CMSKeyTransRecipientInfo(SymmetricKey contentEncryptionKey,
PublicKey keyEncryptionKey,
byte[] spki,
AlgorithmIdentifier keyEncryptionAlgID)
throws CipherException,
InvalidKeyException,
AlgorithmIdentifierException
CMSKeyTransRecipientInfo.contentEncryptionKey - The encryption key.keyEncryptionKey - The key encipherment(wrap) key.spki - The recipient's Subject Public Key Identifier(SPKI) value.keyEncryptionAlgID - The key encipherment(wrap) algorithm.AlgorithmIdentifierException - The encryption algorithm is not supported.CipherException - An error occurred during encryption.InvalidKeyException - The encryption keys are not valid.CMSUtils| 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 oracle.security.crypto.cert.IssuerAndSerialNo getIASN()
IssuerAndSerialNo recipient identifier or null if SPKI is used as the recipient identifier.public java.math.BigInteger getSerialNo()
public oracle.security.crypto.cert.X500Name getIssuer()
public AlgorithmIdentifier getKeyEncryptionAlgID()
public byte[] getEncryptedKey()
public byte[] getSPKI()
public boolean useSPKI64()
true if SPKI is being used; false if IASN is being used.
public SymmetricKey getContentEncryptionKey(PrivateKey keyDecryptionKey)
throws AlgorithmIdentifierException,
InvalidKeyException,
CipherException
keyDecryptionKey - The key decryption key.AlgorithmIdentifierException - If the algorithm identifier contained in this recipient-info object is unrecognized.InvalidKeyException - If the key decryption key could not be used.CipherException - If an error occured during decryption.
public byte[] getContentAuthenticationKey(PrivateKey keyDecryptionKey)
throws AlgorithmIdentifierException,
InvalidKeyException,
CipherException
keyDecryptionKey - The key decryption key.AlgorithmIdentifierException - If the algorithm identifier contained in this recipient-info object is unrecognized.InvalidKeyException - If the key decryption key could not be used.CipherException - If an error occured during decryption.public java.math.BigInteger getVersionNumber()
public ASN1Integer getVersion()
getVersionNumber()getVersion in class CMSRecipientInfo
protected void inputRecipientInfo(java.io.InputStream is)
throws java.io.IOException
CMSRecipientInfoThe input stream is positioned at the beginning of the tag octet of the SEQUENCE encoding.
inputRecipientInfo in class CMSRecipientInfois - The input stream.java.io.IOException - The encoding is incorrect or an I/O error occurs.
public void output(java.io.OutputStream os)
throws java.io.IOException
os - The specified output stream.java.io.IOException - An I/O error occurred.public int length()
public java.lang.String toString()
|
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 | ||||||||