|
|||||||||
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.pkcs9.PKCS9DerObject | +--com.ibm.security.pkcs9.ExtendedCertificateAttributes
Implements the ASN.1 ExtendedCertificateAttributes type.
An ExtendedCertificateAttributes attribute must have a single attribute value.
ExtendedCertificateAttributes objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
ExtendedCertificateAttributes(byte[] der)
Create an ExtendedCertificateAttributes object with a DER byte array. |
|
ExtendedCertificateAttributes(byte[] der,
String provider)
Create an ExtendedCertificateAttributes object with a DER byte array. |
|
ExtendedCertificateAttributes(PKCSAttribute attribute)
Create an ExtendedCertificateAttributes object with a PKCSAttribute as the only element of the set of attributes. |
|
ExtendedCertificateAttributes(PKCSAttributes attributes)
Create an ExtendedCertificateAttributes object with a PKCSAttributes object. |
|
ExtendedCertificateAttributes(PKCSAttributes attributes,
String provider)
Create an ExtendedCertificateAttributes object with a PKCSAttributes object. |
|
ExtendedCertificateAttributes(PKCSAttribute attribute,
String provider)
Create an ExtendedCertificateAttributes object with a PKCSAttribute as the only element of the set of attributes. |
|
ExtendedCertificateAttributes(String filename,
boolean base64)
Create an ExtendedCertificateAttributes with the filename of the DER-encoded or BASE64-encoded object. |
|
ExtendedCertificateAttributes(String filename,
boolean base64,
String provider)
Create an ExtendedCertificateAttributes with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this ExtendedCertificateAttributes object. |
protected void |
decode(com.ibm.security.pkcs9.DerValue encoding)
Initializes an ExtendedCertificateAttributes object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object obj)
Determines if this ExtendedCertificateAttributes object is equivalent to * the input object. |
String |
getAttributeName()
Returns a String indicating the name of the attribute. |
PKCSAttributes |
getExtendedCertificateAttributes()
Returns a reference to the attributes object for this ExtendedCertificateAttributes object. |
ObjectIdentifier |
getObjectIdentifier()
Returns the ObjectIdentifer for the ExtendedCertificateAttributes attribute. |
Object |
getValue()
Calls the getExtendedCertificateAttributes method. |
boolean |
isSingleValued()
Returns true. |
boolean |
isTagValid(byte tag)
Returns a boolean indicating if the tag is valid for this object. |
String |
toString()
Returns a string representation of this ExtendedCertificateAttributes object. |
Methods inherited from class com.ibm.security.pkcs9.PKCS9DerObject |
getName,
getOID,
getPKCSAttribute |
Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
decode,
encode,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ExtendedCertificateAttributes(byte[] der) throws IOException
der
- a DER byte array of an ExtendedCertificateAttributes object.public ExtendedCertificateAttributes(byte[] der, String provider) throws IOException
der
- a DER byte array of an ExtendedCertificateAttributes object.provider
- the provider to be used.public ExtendedCertificateAttributes(PKCSAttribute attribute)
attribute
- PKCSAttributepublic ExtendedCertificateAttributes(PKCSAttribute attribute, String provider)
attribute
- PKCSAttributeprovider
- the provider to be usedpublic ExtendedCertificateAttributes(PKCSAttributes attributes)
attributes
- PKCSAttributespublic ExtendedCertificateAttributes(PKCSAttributes attributes, String provider)
attributes
- PKCSAttributesprovider
- the provider to be usedpublic ExtendedCertificateAttributes(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic ExtendedCertificateAttributes(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 provider to be usedMethod Detail |
public Object clone()
public boolean equals(Object obj)
other
- the object to compare this one to.public ObjectIdentifier getObjectIdentifier()
public void encode(OutputStream os) throws IOException
os
- the OutputStream to write the encoded data to.public PKCSAttributes getExtendedCertificateAttributes()
public Object getValue()
public boolean isTagValid(byte tag)
public boolean isSingleValued()
public String getAttributeName()
public String toString()
protected void decode(com.ibm.security.pkcs9.DerValue encoding) throws IOException
encoding
- a DER-encoded ExtendedCertificateAttributes object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |