Skip navigation links

Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10667-05


oracle.security.crypto.cms
Class CMSKeyTransRecipientInfoSpec

java.lang.Object
  extended by oracle.security.crypto.cms.CMSKeyTransRecipientInfoSpec

All Implemented Interfaces:
CMSRecipientInfoSpec

public class CMSKeyTransRecipientInfoSpec
extends java.lang.Object
implements CMSRecipientInfoSpec

This class encapsulates a recipient key transport key management mechanism information.


Constructor Summary
CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert)
          Creates a CMSKeyTransRecipientInfoSpec object.
CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert, oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID)
          Create a CMSKeyTransRecipientInfoSpec object.
CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert, oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, boolean useSPKI64)
          Creates a CMSKeyTransRecipientInfoSpec object.
CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert, boolean useSPKI64)
          Creates a CMSKeyTransRecipientInfoSpec object.
CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert, byte[] spki, oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID, java.security.PublicKey recipientKey)
          Create a CMSKeyTransRecipientInfoSpec object.

 

Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 oracle.security.crypto.cert.IssuerAndSerialNo getIASN()
           
 oracle.security.crypto.cert.X500Name getIssuer()
          Returns the recipient's certificate's issuer.
 oracle.security.crypto.core.AlgorithmIdentifier getKeyEncryptionAlgID()
          Returns the key transport algorithm.
 java.security.PublicKey getRecipientKey()
          Returns the recipient's public key.
 java.math.BigInteger getSerialNo()
          Returns the serial number of the recipient's certificate.
 byte[] getSPKI()
          Returns the subject public key identifier (SPKI).
 int hashCode()
          Returns a hash code value for this object.
 boolean useSPKI64()
          Indicates if Subject Public Key Identifier (SPKI) is being used for the recipient identification.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CMSKeyTransRecipientInfoSpec

public CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert)
                             throws java.io.IOException,
                                    java.security.cert.CertificateEncodingException,
                                    java.security.NoSuchAlgorithmException
Creates a CMSKeyTransRecipientInfoSpec object.

Note the changes in the Method signature

Previouslypublic CMSKeyTransRecipientInfoSpec (X509 cert)

Nowpublic CMSKeyTransRecipientInfoSpec (X509Certificate cert)

Note the changes in exceptions Exceptions introduced -- IOException,CertificateEncodingException ,NoSuchAlgorithmException

Parameters:
cert - The recipient's X509 certificate.
Throws:
java.io.IOException
java.security.cert.CertificateEncodingException
java.security.NoSuchAlgorithmException

CMSKeyTransRecipientInfoSpec

public CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert,
                                    oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID)
                             throws java.io.IOException,
                                    java.security.cert.CertificateEncodingException
Create a CMSKeyTransRecipientInfoSpec object.

Note the changes in the Method signature

Previouslypublic CMSKeyTransRecipientInfoSpec (X509 cert, AlgorithmIdentifier)

Nowpublic CMSKeyTransRecipientInfoSpec (X509Certificate cert, AlgorithmIdentifier)

Note the changes in exceptions Exceptions introduced -- IOException,CertificateEncodingException

Parameters:
cert - The recipient's X509 certificate.
keyEncryptionAlgID - The key transport algorithm.
Throws:
java.io.IOException
java.security.cert.CertificateEncodingException

CMSKeyTransRecipientInfoSpec

public CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert,
                                    boolean useSPKI64)
                             throws java.security.NoSuchAlgorithmException
Creates a CMSKeyTransRecipientInfoSpec object.

Note the changes in the Method signature

Previouslypublic CMSKeyTransRecipientInfoSpec (X509 , boolean )

Nowpublic CMSKeyTransRecipientInfoSpec (X509Certificate , boolean )

Note the changes in exceptions Exceptions introduced -- NoSuchAlgorithmException Exceptions not thrown -- AlgorithmIdentifierException

Parameters:
cert - The recipient's X509 certificate
useSPKI64 - Uses Subject Public Key Identifier as the recipient identifier. If true, uses a 64 bit SPKI; If false, uses a 160 bit SPKI.
Throws:
java.security.NoSuchAlgorithmException - Algorithm not supported

CMSKeyTransRecipientInfoSpec

public CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert,
                                    oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID,
                                    boolean useSPKI64)
                             throws java.security.NoSuchAlgorithmException
Creates a CMSKeyTransRecipientInfoSpec object.

Note the changes in the Method signature

Previously public CMSKeyTransRecipientInfoSpec (X509 , AlgorithmIdentifier , boolean )

Nowpublic CMSKeyTransRecipientInfoSpec (X509Certificate , AlgorithmIdentifier , boolean )

Note the changes in exceptions Exceptions introduced -- NoSuchAlgorithmException Exceptions not thrown -- AlgorithmIdentifierException

Parameters:
cert - The recipient's certificate.
keyEncryptionAlgID - The key transport algorithm.
useSPKI64 - Uses Subject Public Key Identifier as the recipient identifier. If true, uses a 64 bit SPKI; If false, uses a 160 bit SPKI.
Throws:
java.security.NoSuchAlgorithmException

CMSKeyTransRecipientInfoSpec

public CMSKeyTransRecipientInfoSpec(java.security.cert.X509Certificate cert,
                                    byte[] spki,
                                    oracle.security.crypto.core.AlgorithmIdentifier keyEncryptionAlgID,
                                    java.security.PublicKey recipientKey)
Create a CMSKeyTransRecipientInfoSpec object.

Note the changes in the Method signature

Previouslypublic CMSKeyTransRecipientInfoSpec (X509, byte[], AlgorithmIdentifier , oracle.security.crypto.core.PublicKey )

Nowpublic CMSKeyTransRecipientInfoSpec (X509Certificate, byte[], AlgorithmIdentifier , java.security.PublicKey )

Parameters:
cert - The recipient's X509 certificate.
spki - The subject key identifier.
keyEncryptionAlgID - The key transport algorithm.

Method Detail

hashCode

public int hashCode()
Returns a hash code value for this object.
Overrides:
hashCode in class java.lang.Object
Returns:
The hash code value.

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object
Returns:
true if this object is the same as the obj argument; false otherwise.

getIASN

public oracle.security.crypto.cert.IssuerAndSerialNo getIASN()

getIssuer

public oracle.security.crypto.cert.X500Name getIssuer()
Returns the recipient's certificate's issuer.
Returns:
The X500Name of the certificate issuer.

getSerialNo

public java.math.BigInteger getSerialNo()
Returns the serial number of the recipient's certificate.
Returns:
The serial number.

getKeyEncryptionAlgID

public oracle.security.crypto.core.AlgorithmIdentifier getKeyEncryptionAlgID()
Returns the key transport algorithm.
Returns:
The algorithm identifier.

getRecipientKey

public java.security.PublicKey getRecipientKey()
Returns the recipient's public key.
Returns:
The public key.

getSPKI

public byte[] getSPKI()
Returns the subject public key identifier (SPKI).
Returns:
The key identifier.

useSPKI64

public boolean useSPKI64()
Indicates if Subject Public Key Identifier (SPKI) is being used for the recipient identification.
Returns:
true if SPKI is being used; false otherwise.

Skip navigation links

Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10667-05


Copyright © 2005, 2013, Oracle. All rights reserved.