|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.pkcs.PKCS10Attribute
Represent a PKCS#10 Attribute.
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.
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:
Attribute :: SEQUENCE { type AttributeType, values SET OF AttributeValue } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY defined by type
Field Summary | |
protected ObjectIdentifier |
attributeId
|
protected Object |
attributeValue
|
Constructor Summary | |
PKCS10Attribute(DerValue derVal)
Constructs an attribute from a DER encoding. |
|
PKCS10Attribute(ObjectIdentifier attributeId,
Object attributeValue)
Constructs an attribute from individual components of ObjectIdentifier and the value (any java object). |
|
PKCS10Attribute(PKCS9Attribute attr)
Constructs an attribute from PKCS9 attribute. |
Method Summary | |
void |
derEncode(OutputStream out)
DER encode this object onto an output stream. |
ObjectIdentifier |
getAttributeId()
Returns the ObjectIdentifier of the attribute. |
Object |
getAttributeValue()
Returns the attribute value. |
String |
toString()
Returns the attribute in user readable form. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected ObjectIdentifier attributeId
protected Object attributeValue
Constructor Detail |
public PKCS10Attribute(DerValue derVal) throws IOException
derVal
- the der encoded attribute.public PKCS10Attribute(ObjectIdentifier attributeId, Object attributeValue)
attributeId
- the ObjectIdentifier of the attribute.attributeValue
- an instance of a class that implements
the attribute identified by the ObjectIdentifier.public PKCS10Attribute(PKCS9Attribute attr)
attr
- the PKCS9Attribute to create from.Method Detail |
public void derEncode(OutputStream out) throws IOException
DerEncoder
interface.out
- the OutputStream on which to write the DER encoding.public ObjectIdentifier getAttributeId()
public Object getAttributeValue()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |