|
|||||||||
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.pkcs7.UserKeyingMaterial
Implements the ASN.1 UserKeyingMaterial type.
The UserKeyingMaterial type gives a syntax for user keying material (UKM) which is required by some key management algorithms. The sender provides a UKM for a specific key management algorithm and the UKM is employed by all recipients that use the same key encryption algorithm.
UserKeyingMaterial objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
UserKeyingMaterial(AlgorithmId alg,
byte[] ukm)
Create a UserKeyingMaterial object with the specified values. |
|
UserKeyingMaterial(AlgorithmId alg,
byte[] ukm,
String provider)
Create a UserKeyingMaterial object with the specified values. |
|
UserKeyingMaterial(byte[] der)
Create a UserKeyingMaterial object with a DER byte array. |
|
UserKeyingMaterial(byte[] der,
String provider)
Create a UserKeyingMaterial object with a DER byte array. |
|
UserKeyingMaterial(String filename,
boolean base64)
Create a UserKeyingMaterial with the filename of the DER-encoded or BASE64-encoded object. |
|
UserKeyingMaterial(String filename,
boolean base64,
String provider)
Create a UserKeyingMaterial with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this UserKeyingMaterial object. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes a UserKeyingMaterial object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this UserKeyingMaterial object is equivalent to the input object. |
AlgorithmId |
getKeyEncryptionAlgorithm()
Returns a copy of the key encryption AlgorithmId for this object. |
byte[] |
getUserKeyringMaterial()
Returns a copy of the user keyring material byte array for this object. |
String |
toString()
Returns a string representation of this UserKeyingMaterial 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 UserKeyingMaterial(byte[] der) throws IOException
der
- a DER byte array encoding a UserKeyingMaterial object.public UserKeyingMaterial(byte[] der, String provider) throws IOException
der
- a DER byte array encoding a UserKeyingMaterial object.provider
- the name of the java security provider to use.public UserKeyingMaterial(AlgorithmId alg, byte[] ukm)
alg
- the key encryption algorithm.ukm
- the keying material.public UserKeyingMaterial(AlgorithmId alg, byte[] ukm, String provider)
alg
- the key encryption algorithm.ukm
- the keying material.provider
- the name of the java security provider to use.public UserKeyingMaterial(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic UserKeyingMaterial(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 name of the java security provider to use.Method Detail |
public void encode(OutputStream os) throws IOException
os
- the OutputStream to write the encoded data to.protected void decode(com.ibm.security.pkcs7.DerValue encoding) throws IOException
encoding
- a DER-encoded UserKeyingMaterial object.public AlgorithmId getKeyEncryptionAlgorithm() throws IOException
public byte[] getUserKeyringMaterial()
public boolean equals(Object other)
other
- the object to compare this one to.public Object clone()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |