|
|||||||||
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.ContentType
Implements the ASN.1 ContentType type.
A ContentType attribute must have a single attribute value.
ContentType objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
ContentType(byte[] der)
Create a ContentType object with a DER byte array. |
|
ContentType(byte[] der,
String provider)
Create a ContentType object with a DER byte array. |
|
ContentType(ObjectIdentifier oid)
Create a ContentType object with an ObjectIdentifier. |
|
ContentType(ObjectIdentifier oid,
String provider)
Create a ContentType object with an ObjectIdentifier. |
|
ContentType(String oid)
Create a ContentType object with a String representation of the ObjectIdentifier. |
|
ContentType(String filename,
boolean base64)
Create a ContentType with the filename of the DER-encoded or BASE64-encoded object. |
|
ContentType(String filename,
boolean base64,
String provider)
Create a ContentType with the filename of the DER-encoded or BASE64-encoded object. |
|
ContentType(String oid,
String provider)
Create a ContentType object with a String representation of the ObjectIdentifier. |
Method Summary | |
Object |
clone()
Creates a clone of this ContentType object. |
protected void |
decode(com.ibm.security.pkcs9.DerValue encoding)
Initializes a ContentType object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object obj)
Determines if this ContentType object is equivalent to the input object. |
String |
getAttributeName()
Returns a String indicating the name of the attribute. |
ObjectIdentifier |
getObjectIdentifier()
Returns the ObjectIdentifer for the ContentType attribute. |
ObjectIdentifier |
getOID()
Returns the oid of this ContentType object. |
Object |
getValue()
Calls the getOID 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 ContentType object. |
Methods inherited from class com.ibm.security.pkcs9.PKCS9DerObject |
getName,
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 ContentType(byte[] der) throws IOException
der
- a DER byte array of a ContentType object.public ContentType(byte[] der, String provider) throws IOException
der
- a DER byte array of a ContentType object.provider
- the provider to be used.public ContentType(String oid) throws IOException
oid
- String of the ObjectIdentifierpublic ContentType(String oid, String provider) throws IOException
oid
- String of the ObjectIdentifierprovider
- the provider to be usedpublic ContentType(ObjectIdentifier oid)
oid
- ObjectIdentifier.public ContentType(ObjectIdentifier oid, String provider)
oid
- ObjectIdentifier.provider
- the provider to be used.public ContentType(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic ContentType(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 ObjectIdentifier getOID()
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 ContentType object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |