|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.pkcsutil.PKCSDerObject | +--com.ibm.security.pkcs7.OriginatorInfo
Implements the ASN.1 OriginatorInfo type. It is mainly used in OriginatorInfo to give further information on the originator's certificates and CRLs. It is present in EnvelopedData objects only if required by the key management algorithm.
Only X509Certificate and X509CRL objects are supported for certificates and crls respectively.
OriginatorInfo objects are immutable; they cannot be changed once created.
Certificate
,
CRL
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
OriginatorInfo(byte[] der)
Create an OriginatorInfo object with a DER byte array. |
|
OriginatorInfo(byte[] der,
String provider)
Create an OriginatorInfo object with a DER byte array. |
|
OriginatorInfo(Certificate[] certsIn,
CRL[] crlsIn)
Create an OriginatorInfo object with the specified values. |
|
OriginatorInfo(Certificate[] certsIn,
CRL[] crlsIn,
String provider)
Create an OriginatorInfo object with the specified values. |
|
OriginatorInfo(String filename,
boolean base64)
Create an OriginatorInfo with the filename of the DER-encoded or BASE64-encoded object. |
|
OriginatorInfo(String filename,
boolean base64,
String provider)
Create an OriginatorInfo with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this OriginatorInfo. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes an OriginatorInfo object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this OriginatorInfo object is equivalent to the input object. |
Certificate[] |
getCertificates()
Returns a copy of the set of signing certificates in an array of certificates. |
CRL[] |
getCRLs()
Returns a copy of the set of CRLs in an array of CRLs. |
String |
toString()
Returns a string representation of this OriginatorInfo object. |
Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
decode,
encode,
getObjectIdentifier,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public OriginatorInfo(byte[] der) throws IOException
der
- a DER byte array encoding a OriginatorInfo object.public OriginatorInfo(byte[] der, String provider) throws IOException
der
- a DER byte array encoding a OriginatorInfo object.provider
- the name of the java provider to use.public OriginatorInfo(Certificate[] certsIn, CRL[] crlsIn)
certsIn
- an array of the originator's X.509 certificates.crlsIn
- an array of the originator's X.509 certificate revocation
lists.public OriginatorInfo(Certificate[] certsIn, CRL[] crlsIn, String provider)
certsIn
- an array of the originator's X.509 certificates.crlsIn
- an array of the originator's X.509 certificate revocation
lists.provider
- the name of the java provider to usepublic OriginatorInfo(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic OriginatorInfo(String filename, boolean base64, String provider) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedprovider
- the name of the java security provider to useMethod Detail |
public Object clone()
public void encode(OutputStream os) throws IOException
os
- the OutputStream to write the encoded data to.protected void decode(com.ibm.security.pkcs7.DerValue encoding) throws IOException
encoding
- a DER-encoded OriginatorInfo object.public boolean equals(Object other)
other
- the object to compare this one to.public Certificate[] getCertificates()
public CRL[] getCRLs()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |