java.lang.Object | |
↳ | 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
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
attributeId | |||||||||||
attributeValue |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an attribute from a DER encoding.
| |||||||||||
Constructs an attribute from individual components of
ObjectIdentifier and the value (any java object).
| |||||||||||
Constructs an attribute from PKCS9 attribute.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DER encode this object onto an output stream.
| |||||||||||
Returns the ObjectIdentifier of the attribute.
| |||||||||||
Returns the attribute value.
| |||||||||||
Returns the attribute in user readable form.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs an attribute from a DER encoding. This constructor expects the value to be encoded as defined above, i.e. a SEQUENCE of OID and SET OF value(s), not a literal X.509 v3 extension. Only PKCS9 defined attributes are supported currently.
derVal | the der encoded attribute. |
---|
IOException | on parsing errors. |
---|
Constructs an attribute from individual components of ObjectIdentifier and the value (any java object).
attributeId | the ObjectIdentifier of the attribute. |
---|---|
attributeValue | an instance of a class that implements the attribute identified by the ObjectIdentifier. |
Constructs an attribute from PKCS9 attribute.
attr | the PKCS9Attribute to create from. |
---|
DER encode this object onto an output stream.
Implements the DerEncoder
interface.
out | the OutputStream on which to write the DER encoding. |
---|
IOException | on encoding errors. |
---|
Returns the attribute in user readable form.