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 OriginatorInfo

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

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class OriginatorInfo
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object

Provides information about the message originator.

OriginatorInfo forms a part of a CMS enveloped-data structure and contains Certificates and CRLs.

Please note that the OriginatorInfo is not supported by PKCS#7 Version 1.5.

See Also:
CMSEnvelopedDataContentInfo, CMSEnvelopedDataOutputStream, CMSAuthenticatedDataContentInfo, CMSAuthenticatedDataOutputStream

Constructor Summary
OriginatorInfo()
          Creates an empty OriginatorInfo.
OriginatorInfo(java.io.InputStream is)
          Creates a OriginatorInfo by reading the BER encoding from the specified input stream.
OriginatorInfo(java.util.Vector certSet, java.util.Vector certRevocationLists)
          Creates a OriginatorInfo using the specified Certificates and CRLs.

 

Method Summary
 void addCertificate(java.util.Vector certs)
          Add a collection of certificates.
 void addCertificate(java.security.cert.X509Certificate cert)
          Add a certificate.
 void addCRL(oracle.security.crypto.cert.CRL crl)
          Add a CRL.
 void addCRL(java.util.Vector crls)
          Add a collection of CRLs.
 java.util.Vector getCertificateRevocationLists()
          Returns the collection of CRLs.
 java.util.Vector getCertificateSet()
          Returns the collection of X509 certificates.
 void input(java.io.InputStream is)
          Initialize this object by reading a BER encoded OriginatorInfo structure from the specified input stream.
 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.

 

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

 

Constructor Detail

OriginatorInfo

public OriginatorInfo()
Creates an empty OriginatorInfo.

OriginatorInfo

public OriginatorInfo(java.util.Vector certSet,
                      java.util.Vector certRevocationLists)
               throws java.security.cert.CertificateException
Creates a OriginatorInfo using the specified Certificates and CRLs.
Parameters:
certSet - A collection of X509 Certificates.
certRevocationLists - A collection of CRLs.
Throws:
java.security.cert.CertificateException

OriginatorInfo

public OriginatorInfo(java.io.InputStream is)
               throws java.io.IOException
Creates a OriginatorInfo by reading the BER encoding from the specified input stream.
Parameters:
is - The input stream.
Throws:
java.io.IOException - An I/O error or the input encoding is incorrect.

Method Detail

addCertificate

public void addCertificate(java.security.cert.X509Certificate cert)
                    throws java.io.IOException
Add a certificate.

Note the change in the method signature

Previously : public void addCertificate (X509Certificate cert)

Now : public void addCertificate (X509 cert)

Parameters:
cert - The X509 Certificate.
Throws:
java.io.IOException

addCertificate

public void addCertificate(java.util.Vector certs)
                    throws java.security.cert.CertificateException
Add a collection of certificates.
Parameters:
certs - A Vector containing X509 Certificates.
Throws:
java.security.cert.CertificateException

addCRL

public void addCRL(oracle.security.crypto.cert.CRL crl)
Add a CRL.
Parameters:
crl - The CRL.

addCRL

public void addCRL(java.util.Vector crls)
Add a collection of CRLs.
Parameters:
crls - A Vector containing CRLs.

getCertificateSet

public java.util.Vector getCertificateSet()
                                   throws java.security.cert.CertificateException
Returns the collection of X509 certificates.
Returns:
Vector containing X509 Certificates or null if no certificates are present.
Throws:
java.security.cert.CertificateException

getCertificateRevocationLists

public java.util.Vector getCertificateRevocationLists()
Returns the collection of CRLs.
Returns:
Vector containing CRLs or null if no CRLs are present.

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Initialize this object by reading a BER encoded OriginatorInfo structure from the specified input stream.
Specified by:
input in interface oracle.security.crypto.util.Streamable
Parameters:
is - The input stream.
Throws:
java.io.IOException - The input encoding is incorrect or an I/O error occurred.

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Output this object's encoding to the specified output stream.
Specified by:
output in interface oracle.security.crypto.util.Streamable
Parameters:
os - The output stream.
Throws:
java.io.IOException - An I/O error occurs.

length

public int length()
Returns the length of this object's encoding.
Specified by:
length in interface oracle.security.crypto.util.Streamable
Returns:
The length in bytes.

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.