|
|||||||||
| 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.pkcs12.ShroudedKeyBag
Implements the PKCS #12 PKCS8ShroudedKeyBag data type, which is a container for PKCS #8 EncryptedPrivateKeyInfo data.
ShroudedKeyBag objects are immutable; they cannot be changed once created.
EncryptedPrivateKeyInfo| Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
| Constructor Summary | |
ShroudedKeyBag(byte[] der)
Create a ShroudedKeyBag with a DER byte array. |
|
ShroudedKeyBag(byte[] der,
String provider)
Create a ShroudedKeyBag with a DER byte array. |
|
ShroudedKeyBag(EncryptedPrivateKeyInfo keyInfo)
Create a ShroudedKeyBag with the input EncryptedPrivateKeyInfo. |
|
ShroudedKeyBag(EncryptedPrivateKeyInfo keyInfo,
String provider)
Create a ShroudedKeyBag with the input EncryptedPrivateKeyInfo. |
|
ShroudedKeyBag(String filename,
boolean base64)
Create a ShroudedKeyBag with the filename of the DER-encoded or BASE64-encoded object. |
|
ShroudedKeyBag(String filename,
boolean base64,
String provider)
Create a ShroudedKeyBag with the filename of the DER-encoded or BASE64-encoded object. |
|
| Method Summary | |
Object |
clone()
Creates a clone of this ShroudedKeyBag object. |
protected void |
decode(com.ibm.security.pkcs12.DerValue encoding)
Initialize a ShroudedKeyBag object from an input stream. |
void |
encode(OutputStream out)
Encodes this object to a DER OutputStream. |
boolean |
equals(Object other)
Determines if this ShroudedKeyBag object is equivalent to the input object. |
byte[] |
getEncodedValue()
Returns the DER-encoded contents of this object. |
String |
getName()
Returns the common name for this bag type: "ShroudedKeyBag". |
ObjectIdentifier |
getObjectIdentifier()
Returns the object identifier for this PKCS #12 bag. |
Object |
getValue()
Returns a copy of the contents of this PKCS #12 bag. |
String |
toString()
Returns a string representation of this ShroudedKeyBag object. |
| Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
decode,
encode,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public ShroudedKeyBag(byte[] der)
throws IOException
der - a byte array with a DER-encoded KeyBag object.
public ShroudedKeyBag(byte[] der,
String provider)
throws IOException
der - a byte array with a DER-encoded KeyBag object.provider - a provider to be used.public ShroudedKeyBag(EncryptedPrivateKeyInfo keyInfo)
keyInfo - an EncryptedPrivateKeyInfo object.
public ShroudedKeyBag(EncryptedPrivateKeyInfo keyInfo,
String provider)
keyInfo - an EncryptedPrivateKeyInfo object.provider - a provider to be used.
public ShroudedKeyBag(String filename,
boolean base64)
throws IOException
filename - name of the DER-encoded or base64-encoded objectbase64 - true if BASE64-encoded, false if DER-encoded
public ShroudedKeyBag(String filename,
boolean base64,
String provider)
throws IOException
filename - name of the DER-encoded or base64-encoded objectbase64 - true if BASE64-encoded, false if DER-encodedprovider - a provider to be used| Method Detail |
public void encode(OutputStream out)
throws IOException
out - the DER OutputStream to write the encoded data to.public ObjectIdentifier getObjectIdentifier()
public Object getValue()
public byte[] getEncodedValue()
public String getName()
public boolean equals(Object other)
other - the object to compare this one to.public Object clone()
public String toString()
protected void decode(com.ibm.security.pkcs12.DerValue encoding)
throws IOException
encoding - an input stream with a DER-encoded
EncryptedPrivateKeyInfo object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||