public class C509Attribute
extends java.lang.Object
CRAttribute = ( ( attributeType: int, attributeValue: Defined ) //
( attributeType: ~oid, attributeValue: bytes ) )
The C509 CR Attributes Registry (Section 8.7) defines values 0 (extensionRequest),
1 (challengePassword) and 2 (privateKeyPossessionStatement). For the generic ~oid
form the value byte string carries the DER encoding of the attribute values SET
(the RFC 2986 'values' field).| Modifier and Type | Field and Description |
|---|---|
static int |
CHALLENGE_PASSWORD
Challenge Password (1.2.840.113549.1.9.7), RFC 2985.
|
static int |
EXTENSION_REQUEST
Extension Request (1.2.840.113549.1.9.14), RFC 2985.
|
static int |
PRIVATE_KEY_POSSESSION_STATEMENT
Private Key Possession Statement (1.3.6.1.4.1.22112.2.1), RFC 9883.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getAttrType()
Return the attribute's object identifier - resolved from the registry for the
int-coded form.
|
java.lang.Long |
getRegistryValue()
Return the C509 CR Attributes Registry value when this attribute is carried in
the int-coded form, or null when it uses the generic ~oid form.
|
byte[] |
getValueEncoding()
Return the CBOR encoding of the attribute value item.
|
public static final int EXTENSION_REQUEST
public static final int CHALLENGE_PASSWORD
public static final int PRIVATE_KEY_POSSESSION_STATEMENT
public java.lang.Long getRegistryValue()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getAttrType()
public byte[] getValueEncoding()