|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cms.CMSKEKRecipientInfoSpec
public class CMSKEKRecipientInfoSpec
This class encapsulates a recipient key encipherment (wrapping) key management mechanism information.
Constructor Summary | |
---|---|
CMSKEKRecipientInfoSpec(oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, javax.crypto.SecretKey symmetricKey, byte[] keyIdentifier) Creates a CMSKEKRecipientInfoSpec . |
|
CMSKEKRecipientInfoSpec(oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, javax.crypto.SecretKey symmetricKey, byte[] keyIdentifier, java.util.Date keyDate) Creates a CMSKEKRecipientInfoSpec . |
|
CMSKEKRecipientInfoSpec(oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, javax.crypto.SecretKey symmetricKey, byte[] keyIdentifier, java.util.Date keyDate, oracle.security.crypto.asn1.ASN1Sequence otherKeyAttribute) Creates a CMSKEKRecipientInfoSpec . |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj) Indicates whether some other object is "equal to" this one. |
java.util.Date |
getKeyDate() Returns the key generation date. |
oracle.security.crypto.core.AlgorithmIdentifier |
getKeyEncryptionAlgID() Returns the key encryption (wrap) algorithm. |
byte[] |
getKeyIdentifier() Returns the key encryption (wrap) key identifier. |
oracle.security.crypto.asn1.ASN1Sequence |
getOtherKeyAttribute() Returns the other key attribute. |
javax.crypto.SecretKey |
getSymmetricKey() Returns the key encryption (wrap) key. |
int |
hashCode() Returns a hash code value for this object. |
void |
setKeyDate(java.util.Date keyDate) Sets the key generation date. |
void |
setKeyIdentifier(byte[] keyIdentifier) Sets the key encryption (wrap) key identifier. |
void |
setOtherKeyAttribute(oracle.security.crypto.asn1.ASN1Sequence otherKeyAttribute) Set the other key attribute. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMSKEKRecipientInfoSpec(oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, javax.crypto.SecretKey symmetricKey, byte[] keyIdentifier)
CMSKEKRecipientInfoSpec
.
Note the changes in the Method signature
Previouslypublic CMSKEKRecipientInfoSpec (AlgorithmIdentifier , SymmetricKey, byte[] )
Nowpublic CMSKEKRecipientInfoSpec (AlgorithmIdentifier , SecretKey, byte[] )
keyEncryptionAlgID
- The key encryption (wrap) algorithm.symmetricKey
- The key used to encrypt (wrap) the content encryption key.keyIdentifier
- Symmetric Key Encryption (Wrap) key identifier.public CMSKEKRecipientInfoSpec(oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, javax.crypto.SecretKey symmetricKey, byte[] keyIdentifier, java.util.Date keyDate)
CMSKEKRecipientInfoSpec
.
Note the changes in the Method signature
Previouslypublic CMSKEKRecipientInfoSpec (AlgorithmIdentifier , SymmetricKey, byte[],Date )
Nowpublic CMSKEKRecipientInfoSpec (AlgorithmIdentifier , SecretKey, byte[] ,Date )
keyEncryptionAlgID
- The key encryption (wrap) algorithm.symmetricKey
- The key used to wrap the content encryption key.keyIdentifier
- The key encryption (wrapping) key identifier.keyDate
- Date on which the encryption (wrapping) key was generated.public CMSKEKRecipientInfoSpec(oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, javax.crypto.SecretKey symmetricKey, byte[] keyIdentifier, java.util.Date keyDate, oracle.security.crypto.asn1.ASN1Sequence otherKeyAttribute) throws oracle.security.crypto.util.InvalidInputException
CMSKEKRecipientInfoSpec
.
Note the changes in the Method signature
Previouslypublic CMSKEKRecipientInfoSpec (AlgorithmIdentifier , SymmetricKey, byte[],Date,ASN1Sequence )
Nowpublic CMSKEKRecipientInfoSpec (AlgorithmIdentifier , SecretKey, byte[] ,Date,ASN1Sequence )
keyEncryptionAlgID
- The key encryption (wrap) algorithm.symmetricKey
- The key used to encrypt (wrap) the content encryption key.keyIdentifier
- The key encryption (wrapping) key identifier.keyDate
- Date when the encryption (wrapping) key was generated.otherKeyAttribute
- Other attributes that can be used to identify the encryption (wrapping) key.oracle.security.crypto.util.InvalidInputException
- The OtherKeyAttribute does NOT contain atleast 1 element or the first element of the ASN1Sequence is not an ASN1ObjectID.Method Detail |
---|
public void setKeyIdentifier(byte[] keyIdentifier)
keyIdentifier
- The key identifierkeyIdentifier.public byte[] getKeyIdentifier()
public void setKeyDate(java.util.Date keyDate)
keyDate
- The key generation date.public java.util.Date getKeyDate()
public void setOtherKeyAttribute(oracle.security.crypto.asn1.ASN1Sequence otherKeyAttribute) throws oracle.security.crypto.util.InvalidInputException
otherKeyAttribute
- The OtherKeyAttribute.oracle.security.crypto.util.InvalidInputException
- The OtherKeyAttribute does NOT contain atleast 1 element or the first element of the ASN1Sequence is not an ASN1ObjectID.public oracle.security.crypto.asn1.ASN1Sequence getOtherKeyAttribute()
public oracle.security.crypto.core.AlgorithmIdentifier getKeyEncryptionAlgID()
public javax.crypto.SecretKey getSymmetricKey()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
true
if this object is the same as the obj argument; false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |