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