|
|||||||||
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.pkcs10.CertificationRequestInfo
Implements the ASN.1 CertificationRequestInfo type as defined in PKCS #10. This information is part of a CertificationRequest.
CertificationRequestInfo objects are immutable; they cannot be changed once created.
AlgorithmId
,
CertificationRequest
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
CertificationRequestInfo(byte[] der)
Create a CertificationRequestInfo object with a DER byte array. |
|
CertificationRequestInfo(byte[] der,
String provname)
Create a CertificationRequestInfo object with a DER byte array. |
|
CertificationRequestInfo(String filename,
boolean base64)
Create a CertificationRequestInfo with the filename of the DER-encoded or BASE64-encoded object. |
|
CertificationRequestInfo(String filename,
boolean base64,
String provname)
Create a CertificationRequestInfo with the filename of the DER-encoded or BASE64-encoded object. |
|
CertificationRequestInfo(X500Name subject,
PublicKey key,
PKCSAttributes attrs)
Create a CertificationRequestInfo object with the specified values. |
|
CertificationRequestInfo(X500Name subject,
PublicKey key,
PKCSAttributes attrs,
String provname)
Create a CertificationRequestInfo object with the specified values. |
Method Summary | |
Object |
clone()
Creates a clone of this CertificationRequestInfo object. |
protected void |
decode(com.ibm.security.pkcs10.DerValue encoding)
Initializes a CertificationRequestInfo object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this CertificationRequestInfo object is equivalent to the input object. |
PKCSAttributes |
getAttributes()
Returns a reference to the subject's attributes. |
X500Name |
getSubjectName()
Returns a reference to the certificate subject name. |
PublicKey |
getSubjectPublicKeyInfo()
Returns a copy of the public key info. |
BigInteger |
getVersion()
Returns a reference to the version number. |
String |
toString()
Returns a string representation of this CertificationRequestInfo 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 CertificationRequestInfo(byte[] der) throws IOException
der
- a DER byte array encoding a CertificationRequestInfo object.public CertificationRequestInfo(byte[] der, String provname) throws IOException
der
- a DER byte array encoding a CertificationRequestInfo object.provname
- the name of the java security provider the caller wishes
to usepublic CertificationRequestInfo(X500Name subject, PublicKey key, PKCSAttributes attrs)
subject
- the disinguished name of the certificate subject.key
- the public key being certified.attrs
- a set of attributes describing the certificate subject.
This set may have zero or more elements. A null attrs argument implies
a set with zero elements.public CertificationRequestInfo(X500Name subject, PublicKey key, PKCSAttributes attrs, String provname)
subject
- the disinguished name of the certificate subject.key
- the public key being certified.attrs
- a set of attributes describing the certificate subject.
This set may have zero or more elements. A null attrs argument implies
a set with zero elements.provname
- the name of the java security provider the caller wishes
to usepublic CertificationRequestInfo(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic CertificationRequestInfo(String filename, boolean base64, String provname) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedprovname
- the name of the java security provider the caller wishes
to useMethod Detail |
public void encode(OutputStream os) throws IOException
os
- the OutputStream to write the encoded data to.public boolean equals(Object other)
other
- the object to compare this one to.public String toString()
public Object clone()
public BigInteger getVersion()
public X500Name getSubjectName()
public PublicKey getSubjectPublicKeyInfo() throws InvalidKeyException, IOException
public PKCSAttributes getAttributes()
protected void decode(com.ibm.security.pkcs10.DerValue encoding) throws IOException
encoding
- a DER-encoded CertificationRequestInfo object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |