|
|||||||||
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.MacData
Implements the PKCS #12 MacData type.
MacData objects are immutable; they cannot be changed once created.
DigestInfo
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
MacData(byte[] der)
Create a MacData object with a DER byte array. |
|
MacData(byte[] der,
String provider)
Create a MacData object with a DER byte array. |
|
MacData(DigestInfo mac,
byte[] salt,
int iterations)
Create a MacData from the input values. |
|
MacData(DigestInfo mac,
byte[] salt,
int iterations,
String provider)
Create a MacData from the input values. |
|
MacData(String filename,
boolean base64)
Create a MacData with the filename of the DER-encoded or BASE64-encoded object. |
|
MacData(String filename,
boolean base64,
String provider)
Create a MacData with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this MacData object. |
protected void |
decode(com.ibm.security.pkcs12.DerValue encoding)
Initialize a MacData object from an input stream. |
void |
encode(OutputStream out)
Encodes this object to a DER OutputStream. |
boolean |
equals(Object other)
Determines if this MacData object is equivalent to the input object. |
int |
getIterations()
Returns the iteration count value. |
DigestInfo |
getMac()
Returns a copy of the MAC digest. |
byte[] |
getSalt()
Returns a copy of the salt. |
String |
toString()
Returns a string representation of this MacData 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 MacData(byte[] der) throws IOException
public MacData(byte[] der, String provider) throws IOException
public MacData(DigestInfo mac, byte[] salt, int iterations)
public MacData(DigestInfo mac, byte[] salt, int iterations, String provider)
public MacData(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic MacData(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 usedMethod Detail |
public void encode(OutputStream out) throws IOException
out
- the DER OutputStream to write the encoded data to.public boolean equals(Object other)
other
- the object to compare this one to.public Object clone()
public String toString()
public DigestInfo getMac()
public byte[] getSalt()
public int getIterations()
protected void decode(com.ibm.security.pkcs12.DerValue encoding) throws IOException
encoding
- an input stream with a DER-encoded MacData object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |