|
|||||||||
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.MailListKeyIdentifier
Implements the ASN.1 MailListKeyIdentifier type.
The keyIdentifier identifies the key-encryption key that was previously distributed to the sender and the recipient.
The optional date value specifies a single key-encryption key from a set that was previously distributed to the sender and the recipient.
The optional other value contains additional information used by the recipient to locate the keying material used by the sender.
MailListKeyIdentifier objects are immutable; they cannot be changed once created.
UserKeyingMaterial
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
MailListKeyIdentifier(byte[] der)
Create a MailListKeyIdentifier object with a DER byte array. |
|
MailListKeyIdentifier(byte[] key,
Date date,
com.ibm.security.pkcs7.AVA attr)
Create a MailListKeyIdentifier object with the specified values. |
|
MailListKeyIdentifier(byte[] key,
Date date,
com.ibm.security.pkcs7.AVA attr,
String provider)
Create a MailListKeyIdentifier object with the specified values. |
|
MailListKeyIdentifier(byte[] der,
String provider)
Create a MailListKeyIdentifier object with a DER byte array. |
|
MailListKeyIdentifier(String filename,
boolean base64)
Create a MailListKeyIdentifier with the filename of the DER-encoded or BASE64-encoded object. |
|
MailListKeyIdentifier(String filename,
boolean base64,
String provider)
Create a MailListKeyIdentifier with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this MailListKeyIdentifier object. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes a MailListKeyIdentifier object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this MailListKeyIdentifier object is equivalent to the input object. |
Date |
getDate()
Returns a copy the date data member of this object. |
byte[] |
getKeyIdentifier()
Returns a copy the keyIdentifier data member of this object. |
com.ibm.security.pkcs7.AVA |
getOtherAttribute()
Returns a copy the other attribute data member of this object. |
String |
toString()
Returns a string representation of this MailListKeyIdentifier 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 MailListKeyIdentifier(byte[] der) throws IOException
der
- a DER byte array encoding a MailListKeyIdentifier object.public MailListKeyIdentifier(byte[] der, String provider) throws IOException
der
- a DER byte array encoding a MailListKeyIdentifier object.provider
- the name of the java security provider to usepublic MailListKeyIdentifier(byte[] key, Date date, com.ibm.security.pkcs7.AVA attr)
key
- the encoded key-encryption key.date
- specifies a single key-encryption key from a
previously-distributed set of keys. This may be null.attr
- additional information used by the recipient to locate
keying material used by the sender. This may be null.public MailListKeyIdentifier(byte[] key, Date date, com.ibm.security.pkcs7.AVA attr, String provider)
key
- the encoded key-encryption key.date
- specifies a single key-encryption key from a
previously-distributed set of keys. This may be null.attr
- additional information used by the recipient to locate
keying material used by the sender. This may be null.provider
- the name of the java security provider to usepublic MailListKeyIdentifier(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic MailListKeyIdentifier(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 useMethod 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 MailListKeyIdentifier object.public boolean equals(Object other)
other
- the object to compare this one to.public byte[] getKeyIdentifier()
public Date getDate()
public com.ibm.security.pkcs7.AVA getOtherAttribute() throws IOException
public String toString()
public Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |