|
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.OriginatorInfo
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.
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(oracle.security.crypto.cert.X509 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 |
public OriginatorInfo()
OriginatorInfo
.public OriginatorInfo(java.util.Vector certSet, java.util.Vector certRevocationLists)
OriginatorInfo
using the specified Certificates and CRLs.certSet
- A collection of X509
Certificates.certRevocationLists
- A collection of CRL
s.public OriginatorInfo(java.io.InputStream is) throws java.io.IOException
OriginatorInfo
by reading the BER encoding from the specified input stream.is
- The input stream.java.io.IOException
- An I/O error or the input encoding is incorrect.Method Detail |
public void addCertificate(oracle.security.crypto.cert.X509 cert)
cert
- The X509 Certificate.public void addCertificate(java.util.Vector certs)
certs
- A Vector
containing X509 Certificates.public void addCRL(oracle.security.crypto.cert.CRL crl)
crl
- The CRL.public void addCRL(java.util.Vector crls)
crls
- A Vector
containing CRLs.public java.util.Vector getCertificateSet()
Vector
containing X509 Certificates or null
if no certificates are present.public java.util.Vector getCertificateRevocationLists()
Vector
containing CRLs or null
if no CRLs are present.public void input(java.io.InputStream is) throws java.io.IOException
is
- The input stream.java.io.IOException
- The input encoding is incorrect or an I/O error occurred.public void output(java.io.OutputStream os) throws java.io.IOException
os
- The output stream.java.io.IOException
- An I/O error occurs.public int length()
|
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 |