|
|||||||||
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.SignerIdentifier
Implements the ASN.1 SignerIdentifier attribute type.
SignerIdentifier objects are immutable; they cannot be changed once created.
IssuerAndSerialNumber
,
SubjectKeyIdentifier
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
SignerIdentifier(byte[] der)
Create a SignerIdentifier object with a DER byte array. |
|
SignerIdentifier(byte[] der,
String provider)
Create a SignerIdentifier object with a DER byte array. |
|
SignerIdentifier(Certificate cert)
Create a SignerIdentifier object with a X.509 Certificate object. |
|
SignerIdentifier(Certificate cert,
String provider)
Create a SignerIdentifier object with a X.509 Certificate object. |
|
SignerIdentifier(IssuerAndSerialNumber issuer)
Create a SignerIdentifier object with an IssuerAndSerialNumber object. |
|
SignerIdentifier(IssuerAndSerialNumber issuer,
String provider)
Create a SignerIdentifier object with an IssuerAndSerialNumber object. |
|
SignerIdentifier(String filename,
boolean base64)
Create a SignerIdentifier with the filename of the DER-encoded or BASE64-encoded object. |
|
SignerIdentifier(String filename,
boolean base64,
String provider)
Create a SignerIdentifier with the filename of the DER-encoded or BASE64-encoded object. |
|
SignerIdentifier(SubjectKeyIdentifier ski)
Create a SignerIdentifier object with a SubjectKeyIdentifier object. |
|
SignerIdentifier(SubjectKeyIdentifier ski,
String provider)
Create a SignerIdentifier object with a SubjectKeyIdentifier object. |
Method Summary | |
Object |
clone()
Creates a clone of this SignerIdentifier object. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes a SignerIdentifier object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this SignerIdentifier object is equivalent to the input object. |
IssuerAndSerialNumber |
getIssuer()
Get a copy of the IssuerAndSerialNumber, if this SignerIdentifier contains an IssuerAndSerialNumber object. |
SubjectKeyIdentifier |
getSubjectKeyIdentifier()
Get a copy of the SubjectKeyIdentifier object, if this SignerIdentifier contains a SubjectKeyIdentifier object. |
boolean |
isIssuer()
Check if value is stored as an IssuerAndSerialNumber object. |
String |
toString()
Returns a string representation of this SignerIdentifier 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 SignerIdentifier(byte[] der) throws IOException
der
- a DER byte array of a SignerIdentifier object.public SignerIdentifier(byte[] der, String provider) throws IOException
der
- a DER byte array of a SignerIdentifier object.provider
- the name of the java security provider to use.public SignerIdentifier(IssuerAndSerialNumber issuer)
issuer
- IssuerAndSerialNumberpublic SignerIdentifier(IssuerAndSerialNumber issuer, String provider)
issuer
- IssuerAndSerialNumberprovider
- the name of the java security provider to usepublic SignerIdentifier(SubjectKeyIdentifier ski)
ski
- SubjectKeyIdentifierpublic SignerIdentifier(SubjectKeyIdentifier ski, String provider)
ski
- SubjectKeyIdentifierprovider
- the name of the java security provider to usepublic SignerIdentifier(Certificate cert) throws IOException
issuer
- IssuerAndSerialNumberpublic SignerIdentifier(Certificate cert, String provider) throws IOException
issuer
- IssuerAndSerialNumberprovider
- the name of the java security provider to usepublic SignerIdentifier(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic SignerIdentifier(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 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 SignerIdentifier object.public IssuerAndSerialNumber getIssuer()
public SubjectKeyIdentifier getSubjectKeyIdentifier()
public boolean isIssuer()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |