|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-04 |
||||||||
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
public class PKCS12ShroudedKeyBag
A PKCS #12 shrouded key bag. The key is shrouded with PKCS #8.
Constructor Summary | |
---|---|
PKCS12ShroudedKeyBag() Creates a new empty instance. |
|
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 | |
---|---|
char[] |
getPasswd() Returns the password to use for encrypting and/or decrypting the enclosed PrivateKeyPKCS8 . |
java.lang.String |
getPassword() Deprecated. Use getPasswd() |
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 |
setPasswd(char[] passwd) Sets the password to use for encrypting and/or decrypting the enclosed PrivateKeyPKCS8 . |
void |
setPassword(java.lang.String passwd) Deprecated. Use setPasswd(char[]) |
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, readExternal, setFriendlyName, setLocalKeyID, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PKCS12ShroudedKeyBag()
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
java.io.IOException
public PKCS12ShroudedKeyBag(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
PrivateKeyPKCS8
is not decrypted until getPrivateKey()
is called.is
- The input stream from which this object will be read.java.io.IOException
setPassword(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.IOException
setPassword(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.IOException
public int length()
public void setPassword(java.lang.String passwd)
setPasswd(char[])
PrivateKeyPKCS8
. By default, the parent PKCS12Safe
's password is used.passwd
- The PrivateKeyPKCS8
password.public void setPasswd(char[] passwd)
PrivateKeyPKCS8
. By default, the parent PKCS12Safe
's password is used.passwd
- The PrivateKeyPKCS8
password.public java.lang.String getPassword()
getPasswd()
PrivateKeyPKCS8
. By default, the parent PKCS12Safe
's password is used.public char[] getPasswd()
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()
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-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |