|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.security.pkcsutil.UnresolvedAttribute
Attributes are additonal information which can be inserted in a PKCS #10 certificate request. For example a "Driving License Certificate" could have the driving license number as an attribute. They are also used to add information to the PrivateKeyInfo defined by PKCS #8.
Attributes are represented as a sequence of the attribute identifier (Object Identifier) and a set of DER encoded attribute values. ASN.1 definition of Attribute:
UnresolvedAttribute objects are immutable; they cannot be changed once created.
Constructor Summary | |
UnresolvedAttribute()
Default constructor for the UnresolvedAttribute object. |
|
UnresolvedAttribute(byte[] der)
Create an UnresolvedAttribute object with a DER byte array. |
|
UnresolvedAttribute(byte[] der,
String provider)
Create an UnresolvedAttribute object with a DER byte array. |
|
UnresolvedAttribute(ObjectIdentifier id,
Object value)
Constructs an attribute from individual components of ObjectIdentifier and the value (any java object). |
|
UnresolvedAttribute(ObjectIdentifier id,
Object value,
String provider)
Constructs an attribute from individual components of ObjectIdentifier and the value (any java object). |
|
UnresolvedAttribute(String provider)
Constructor for the UnresolvedAttribute object. |
|
UnresolvedAttribute(String filename,
boolean base64)
Create an UnresolvedAttribute with the filename of the DER-encoded or BASE64-encoded object. |
|
UnresolvedAttribute(String filename,
boolean base64,
String provider)
Create an UnresolvedAttribute with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this UnresolvedAttribute object. |
protected void |
decode(com.ibm.security.pkcsutil.DerValue encoding)
Initializes an UnresolvedAttribute object from a DerValue. |
void |
derEncode(OutputStream out)
DER encode this object onto an output stream. |
void |
encode(OutputStream out)
Encode the attributes in DER form to the stream. |
boolean |
equals(Object obj)
Determines if this UnresolvedAttribute object is equivalent to the input object. |
ObjectIdentifier |
getObjectIdentifier()
Returns a reference to the ObjectIdentifier of the attribute. |
Object |
getValue()
Returns a copy of the attribute value. |
String |
toString()
Returns the attribute in user readable form. |
Constructor Detail |
public UnresolvedAttribute()
public UnresolvedAttribute(String provider)
public UnresolvedAttribute(byte[] der) throws IOException
der
- a DER byte array of an UnresolvedAttribute object.public UnresolvedAttribute(byte[] der, String provider) throws IOException
der
- a DER byte array of an UnresolvedAttribute object.provider
- the provider to be used.public UnresolvedAttribute(ObjectIdentifier id, Object value) throws IOException
id
- the ObjectIdentifier of the attribute.value
- a DER-encoding of the SET OF value identified by the
ObjectIdentifier; this argument must be a byte array.public UnresolvedAttribute(ObjectIdentifier id, Object value, String provider) throws IOException
id
- the ObjectIdentifier of the attribute.value
- a DER-encoding of the SET OF value identified by the
ObjectIdentifier; this argument must be a byte array.provider
- the provider to be used.public UnresolvedAttribute(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic UnresolvedAttribute(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 void encode(OutputStream out) throws IOException
out
- the OutputStream to marshal the contents to.public void derEncode(OutputStream out) throws IOException
DerEncoder
interface.out
- the OutputStream on which to write the DER encoding.public ObjectIdentifier getObjectIdentifier()
public Object getValue() throws IOException
public String toString()
protected void decode(com.ibm.security.pkcsutil.DerValue encoding) throws IOException
encoding
- a DER-encoded UnresolvedAttribute object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |