|
|||||||||
| 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.AuthenticatedSafe
Implements the PKCS #12 AuthenticatedSafe data type, which is a sequence of ContentInfos. AuthenticatedSafe is defined as follows:
AuthenticatedSafe objects are immutable; they cannot be changed once created.
SafeContents,
ContentInfo| Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
| Constructor Summary | |
AuthenticatedSafe(byte[] der)
Create an AuthenticatedSafe object with a DER byte array. |
|
AuthenticatedSafe(byte[] der,
String provider)
Create an AuthenticatedSafe object with a DER byte array, and a provider specified. |
|
AuthenticatedSafe(ContentInfo[] info)
Create an AuthenticatedSafe object with the input ContentInfo array. |
|
AuthenticatedSafe(ContentInfo[] info,
String provider)
Create an AuthenticatedSafe object with the input ContentInfo array, and the provider. |
|
AuthenticatedSafe(String filename,
boolean base64)
Create an AuthenticatedSafe with the filename of the DER-encoded or BASE64-encoded object. |
|
AuthenticatedSafe(String filename,
boolean base64,
String provider)
Create an AuthenticatedSafe with the filename of the DER-encoded or BASE64-encoded object. |
|
| Method Summary | |
AuthenticatedSafe |
addContentInfo(ContentInfo[] contents)
Add one or more ContentInfos to this AuthenticatedSafe object and return the combined ContentInfos in a new object. |
Object |
clone()
Creates a clone of this AuthenticatedSafe object. |
protected void |
decode(com.ibm.security.pkcs12.DerValue encoding)
Initialize a AuthenticatedSafe object from an input stream. |
void |
encode(OutputStream out)
Encodes this object to a DER OutputStream. |
boolean |
equals(Object obj)
Determines if this AuthenticatedSafe object is equivalent to the input object. |
ContentInfo[] |
getContentInfos()
Return a copy of the ContentInfos in this AuthenticatedSafe. |
ContentInfo |
toContentInfo()
Transform the DER-encoded data in this object into a ContentInfo with content type Data. |
String |
toString()
Returns a string representation of this AuthenticatedSafe object. |
| Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
decode,
encode,
getObjectIdentifier,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public AuthenticatedSafe(byte[] der)
throws IOException
public AuthenticatedSafe(byte[] der,
String provider)
throws IOException
public AuthenticatedSafe(ContentInfo[] info)
throws IOException
public AuthenticatedSafe(ContentInfo[] info,
String provider)
throws IOException
public AuthenticatedSafe(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 AuthenticatedSafe(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 to use| Method Detail |
public void encode(OutputStream out)
throws IOException
out - the DER OutputStream to write the encoded data to.public AuthenticatedSafe addContentInfo(ContentInfo[] contents)
contents - the ContentInfos to add.public ContentInfo[] getContentInfos()
public ContentInfo toContentInfo()
throws IOException
public Object clone()
public boolean equals(Object obj)
other - the object to compare this one to.public String toString()
protected void decode(com.ibm.security.pkcs12.DerValue encoding)
throws IOException
encoding - an input stream with a DER-encoded AuthenticatedSafe
object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||