|
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.PKCS12Bag
oracle.security.crypto.cert.PKCS12ShroudedKeyBag
A PKCS #12 shrouded key bag. The key is shrouded with PKCS #8.
| Constructor Summary | |
PKCS12ShroudedKeyBag(PKCS12Safe parent) |
|
PKCS12ShroudedKeyBag(PKCS12Safe parent, oracle.security.crypto.asn1.ASN1Sequence s) |
|
PKCS12ShroudedKeyBag(PKCS12Safe parent, java.io.InputStream is) |
|
PKCS12ShroudedKeyBag(PKCS12Safe parent, oracle.security.crypto.core.PrivateKeyPKCS8 pkcs8) |
|
| Method Summary | |
java.lang.String |
getPassword()Returns the password to use for encrypting and/or decrypting the enclosed PrivateKeyPKCS8. |
oracle.security.crypto.core.PrivateKeyPKCS8 |
getPKCS8() |
oracle.security.crypto.core.PrivateKey |
getPrivateKey() |
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 |
setPassword(java.lang.String passwd)Sets the password to use for encrypting and/or decrypting the enclosed PrivateKeyPKCS8. |
void |
setPKCS8(oracle.security.crypto.core.PrivateKeyPKCS8 pkcs8) |
java.lang.String |
toString()Returns a string representation of this object. |
| Methods inherited from class oracle.security.crypto.cert.PKCS12Bag |
getFriendlyName, getLocalKeyID, inputBag, outputAttrsASN1, setFriendlyName, setLocalKeyID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PKCS12ShroudedKeyBag(PKCS12Safe parent)
public PKCS12ShroudedKeyBag(PKCS12Safe parent,
oracle.security.crypto.core.PrivateKeyPKCS8 pkcs8)
public PKCS12ShroudedKeyBag(PKCS12Safe parent,
java.io.InputStream is)
throws java.io.IOException
public PKCS12ShroudedKeyBag(PKCS12Safe parent,
oracle.security.crypto.asn1.ASN1Sequence s)
throws java.io.IOException
| Method Detail |
public void input(java.io.InputStream is)
throws java.io.IOException
PrivateKeyPKCS8 is not decrypted until getPrivateKey() is called.is - The input stream from which this object will be read.java.io.IOExceptionsetPassword(java.lang.String)
public void input(oracle.security.crypto.asn1.ASN1Sequence s)
throws java.io.IOException
PrivateKeyPKCS8 is not decrypted until getPrivateKey() is called.s - The ASN.1 sequence representation of this object.java.io.IOExceptionsetPassword(java.lang.String)
public void output(java.io.OutputStream os)
throws java.io.IOException
os - The output stream to which the object will be written.java.io.IOExceptionpublic int length()
public void setPassword(java.lang.String passwd)
PrivateKeyPKCS8. By default, the parent PKCS12Safe's password is used.passwd - The PrivateKeyPKCS8 password.public java.lang.String getPassword()
PrivateKeyPKCS8. By default, the parent PKCS12Safe's password is used.public oracle.security.crypto.core.PrivateKey getPrivateKey()
public oracle.security.crypto.core.PrivateKeyPKCS8 getPKCS8()
public void setPKCS8(oracle.security.crypto.core.PrivateKeyPKCS8 pkcs8)
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 | |||||||||