|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.PKCS12Bag
oracle.security.crypto.cert.PKCS12CertBag
public class PKCS12CertBag
A PKCS #12 certificate bag for X.509 certificates.
Constructor Summary | |
---|---|
PKCS12CertBag() Creates a new empty instance. |
|
PKCS12CertBag(PKCS12Safe parent) |
|
PKCS12CertBag(PKCS12Safe parent, oracle.security.crypto.asn1.ASN1Sequence s) |
|
PKCS12CertBag(PKCS12Safe parent, java.io.InputStream is) |
|
PKCS12CertBag(PKCS12Safe parent, X509 cert) |
Method Summary | |
---|---|
X509 |
getCert() |
java.security.cert.X509Certificate |
getX509Certificate() Internally calls getCert() and then X509.toX509Certificate() |
void |
input(oracle.security.crypto.asn1.ASN1Sequence s) Reconstructs this object from its representation as an ASN.1 sequence. |
void |
input(java.io.InputStream is) Reconstructs this object by reading its DER encoding from the specified input stream. |
int |
length() Returns the length of this object's DER encoding. |
void |
output(java.io.OutputStream os) Outputs the DER encoding of this object to the specified output stream. |
void |
setCert(X509 cert) Deprecated. Use setCert(X509Certificate) |
void |
setCert(java.security.cert.X509Certificate cert) Set the certificate in the cert bag |
java.lang.String |
toString() Returns a string representation of this object. |
Methods inherited from class oracle.security.crypto.cert.PKCS12Bag |
---|
getFriendlyName, getLocalKeyID, inputBag, outputAttrsASN1, readExternal, setFriendlyName, setLocalKeyID, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PKCS12CertBag()
public PKCS12CertBag(PKCS12Safe parent)
public PKCS12CertBag(PKCS12Safe parent, X509 cert)
public PKCS12CertBag(PKCS12Safe parent, java.io.InputStream is) throws java.io.IOException
java.io.IOException
public PKCS12CertBag(PKCS12Safe parent, oracle.security.crypto.asn1.ASN1Sequence s) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void input(java.io.InputStream is) throws java.io.IOException
is
- the input stream from which this object will be readjava.io.IOException
public void input(oracle.security.crypto.asn1.ASN1Sequence s) throws java.io.IOException
s
- the ASN.1 sequence representation of this objectjava.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
os
- the output stream to which the object will be writtenjava.io.IOException
public int length()
public X509 getCert()
public java.security.cert.X509Certificate getX509Certificate()
getCert()
and then X509.toX509Certificate()
public void setCert(X509 cert)
setCert(X509Certificate)
cert
-public void setCert(java.security.cert.X509Certificate cert)
cert
-public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |