|
|||||||||
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.SecretBag
Implements the PKCS #12 SecretBag data type.
SecretBag objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
SecretBag(byte[] der)
Create a SecretBag with a DER byte array. |
|
SecretBag(byte[] der,
String provider)
Create a SecretBag with a DER byte array. |
|
SecretBag(ObjectIdentifier oid,
byte[] obj)
Create a SecretBag with the input byte stream which must be the DER-encoding of some object. |
|
SecretBag(ObjectIdentifier oid,
byte[] obj,
String provider)
Create a SecretBag with the input byte stream which must be the DER-encoding of some object. |
|
SecretBag(String filename,
boolean base64)
Create a SecretBag with the filename of the DER-encoded or BASE64-encoded object. |
|
SecretBag(String filename,
boolean base64,
String provider)
Create a SecretBag with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this SecretBag object. |
protected void |
decode(com.ibm.security.pkcs12.DerValue encoding)
Initialize a SecretBag object from an input stream. |
void |
encode(OutputStream out)
Encodes this object to a DER OutputStream. |
boolean |
equals(Object other)
Determines if this SecretBag object is equivalent to the input object. |
byte[] |
getEncodedValue()
Returns the DER-encoding of the contents of this bag. |
String |
getName()
Returns the common name for this bag type: "SecretBag". |
ObjectIdentifier |
getObjectIdentifier()
Returns a copy of 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 SecretBag 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 SecretBag(byte[] der) throws IOException
public SecretBag(byte[] der, String provider) throws IOException
public SecretBag(ObjectIdentifier oid, byte[] obj)
oid
- the object identifier of this secret bag.obj
- the DER-encoding of the bag contents object.public SecretBag(ObjectIdentifier oid, byte[] obj, String provider)
oid
- the object identifier of this secret bag.obj
- the DER-encoding of the bag contents object.provider
- the provider being used.public SecretBag(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic SecretBag(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
- the provider being usedMethod 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 object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |