|
Oracle Security Developer Tools Security Engine Java API Reference 10g Release 3 (10.1.3) B25381-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.crypto.cert.PKCS12Safe
An instance of the PKCS #12 SafeContents type, encrypted. It can contain multiple safe bags, represented as instances of PKCS12Bag.
Each PKCS12Safe object contains a reference to its parent, which is the PKCS12 object to which the safe belongs. The chief purpose of the reference is to obtain the encryption password.
KeyPairPKCS12, PKCS12, PKCS12Bag, PKCS12CertBag, PKCS12ShroudedKeyBag, PKCS5| Constructor Summary | |
PKCS12Safe(PKCS12 parent) |
|
PKCS12Safe(PKCS12 parent, oracle.security.crypto.asn1.ASN1Sequence s) |
|
PKCS12Safe(PKCS12 parent, java.io.InputStream is) |
|
PKCS12Safe(PKCS12 parent, int mode) |
|
| Method Summary | |
void |
addBag(PKCS12Bag b) |
java.util.Vector |
getBags()Returns the vector of PKCS12Bags contained in this safe. |
int |
getMode()Get the encryption mode used for this safe. |
java.lang.String |
getPassword()Returns the data encryption password for this PKCS12Safe. |
oracle.security.crypto.core.PKCS5 |
getPKCS5() |
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 |
setBags(java.util.Vector b) |
void |
setMode(int mode) |
void |
setPassword(java.lang.String passwd)Sets the data encryption password for this PKCS12Safe. |
java.lang.String |
toString()Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PKCS12Safe(PKCS12 parent)
public PKCS12Safe(PKCS12 parent,
int mode)
public PKCS12Safe(PKCS12 parent,
java.io.InputStream is)
throws java.io.IOException
public PKCS12Safe(PKCS12 parent,
oracle.security.crypto.asn1.ASN1Sequence s)
throws java.io.IOException
| Method Detail |
public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamableis - 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
output in interface oracle.security.crypto.util.Streamableos - the output stream to which the object will be writtenjava.io.IOExceptionpublic int length()
length in interface oracle.security.crypto.util.Streamablepublic void setPassword(java.lang.String passwd)
PKCS12Safe. By default, the parent PKCS12's password is used.public java.lang.String getPassword()
PKCS12Safe. By default, the parent PKCS12's password is used.public java.util.Vector getBags()
PKCS12Bags contained in this safe.public void setBags(java.util.Vector b)
public void addBag(PKCS12Bag b)
public int getMode()
PKCS5.PKCS5public void setMode(int mode)
public oracle.security.crypto.core.PKCS5 getPKCS5()
public java.lang.String toString()
|
Oracle Security Developer Tools Security Engine Java API Reference 10g Release 3 (10.1.3) B25381-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||