|
|||||||||
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.SubjectKeyIdentifier
Implements the ASN.1 SubjectKeyIdentifier type.
SubjectKeyIdentifier objects are immutable; they cannot be changed once constructed and initialized. If the setIdentifier() method is called and the SubjectKeyIdentifier value has already been set, the setIdentifier() method will throw a PKCSException.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
SubjectKeyIdentifier()
Create an uninitialized SubjectKeyIdentifier object. |
|
SubjectKeyIdentifier(byte[] der)
Create a SubjectKeyIdentifier object with a DER byte array. |
|
SubjectKeyIdentifier(byte[] der,
String provider)
Create a SubjectKeyIdentifier object with a DER byte array. |
|
SubjectKeyIdentifier(String provider)
Create an uninitialized SubjectKeyIdentifier object. |
|
SubjectKeyIdentifier(String filename,
boolean base64)
Create a SubjectKeyIdentifier with the filename of the DER-encoded or BASE64-encoded object. |
|
SubjectKeyIdentifier(String filename,
boolean base64,
String provider)
Create a SubjectKeyIdentifier with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this SubjectKeyIdentifier object. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes a SubjectKeyIdentifier object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this SubjectKeyIdentifier object is equivalent to the input object. |
byte[] |
getIdentifier()
Returns a copy of the identifier contents of this SubjectKeyIdentifier object. |
void |
setIdentifier(byte[] identifier)
Set the identifier contents for this SubjectKeyIdentifier object. |
String |
toString()
Returns a string representation of this SubjectKeyIdentifier 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 SubjectKeyIdentifier()
public SubjectKeyIdentifier(String provider)
provider
- the name of the java security provider to use.public SubjectKeyIdentifier(byte[] der) throws IOException
der
- a DER byte array of a SubjectKeyIdentifier object.public SubjectKeyIdentifier(byte[] der, String provider) throws IOException
der
- a DER byte array of a SubjectKeyIdentifier object.provider
- the name of the java security provider to use.public SubjectKeyIdentifier(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic SubjectKeyIdentifier(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 Object clone()
public boolean equals(Object other)
other
- the object to compare this one to.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 SubjectKeyIdentifier object.public void setIdentifier(byte[] identifier) throws PKCSException
identifier
- byte array of the identifier.public byte[] getIdentifier()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |