| Modifier and Type | Class and Description |
|---|---|
| private static record | PKCS9Attribute.
Contains information for encoding and getting the value of a given PKCS9 attribute |
| public static interface | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| private static final Debug | |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| private final PKCS9Attribute. | info
The AttributeInfo of this attribute. |
| private static final Map | infoMap
Map containing the AttributeInfo for supported OIDs |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| private final ObjectIdentifier | oid
The OID of this attribute. |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| public static final ObjectIdentifier | |
| private final Object | value
Value set of this attribute. |
| Access | Constructor and Description |
|---|---|
| public | PKCS9Attribute(ObjectIdentifier oid, Object value)
Construct an attribute object from the attribute's OID and value. |
| public | PKCS9Attribute(DerValue
the DerValue representing the DER encoding of the attribute. derVal)Construct a PKCS9Attribute from its encoding on an input stream. |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> void | add(ObjectIdentifier oid, boolean singleValued, Class<T> valueClass, PKCS9Attribute.
|
| public void | encode(DerOutputStream out)
Implements sun. Write the DER encoding of this attribute to an output stream. |
| public String | |
| public static String | getName(ObjectIdentifier oid)
Return the attribute name for a given OID or null if we don't recognize the oid. |
| public ObjectIdentifier | |
| public static ObjectIdentifier | |
| public static Set | |
| public Object | |
| pack-priv static int | Returns: the index, if found, and -1 otherwise.Beginning the search at |
| public boolean | |
| public boolean | |
| private void | throwSingleValuedException()
Throw an exception when there are multiple values for a single-valued attribute. |
| private void | throwTagException(byte tag)
Throw an exception when the tag on a value encoding is wrong for the attribute whose value it is. |
| public String |
| CHALLENGE_PASSWORD_OID | back to summary |
|---|---|
| public static final ObjectIdentifier CHALLENGE_PASSWORD_OID | |
| CMS_ALGORITHM_PROTECTION_OID | back to summary |
|---|---|
| public static final ObjectIdentifier CMS_ALGORITHM_PROTECTION_OID | |
| CONTENT_TYPE_OID | back to summary |
|---|---|
| public static final ObjectIdentifier CONTENT_TYPE_OID | |
| COUNTERSIGNATURE_OID | back to summary |
|---|---|
| public static final ObjectIdentifier COUNTERSIGNATURE_OID | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| EMAIL_ADDRESS_OID | back to summary |
|---|---|
| public static final ObjectIdentifier EMAIL_ADDRESS_OID | |
| EXTENDED_CERTIFICATE_ATTRIBUTES_OID | back to summary |
|---|---|
| public static final ObjectIdentifier EXTENDED_CERTIFICATE_ATTRIBUTES_OID | |
| EXTENSION_REQUEST_OID | back to summary |
|---|---|
| public static final ObjectIdentifier EXTENSION_REQUEST_OID | |
| info | back to summary |
|---|---|
| private final PKCS9Attribute. The AttributeInfo of this attribute. Can be null if oid is unknown. | |
| infoMap | back to summary |
|---|---|
| private static final Map<ObjectIdentifier, PKCS9Attribute. Map containing the AttributeInfo for supported OIDs | |
| ISSUER_SERIALNUMBER_OID | back to summary |
|---|---|
| public static final ObjectIdentifier ISSUER_SERIALNUMBER_OID | |
| MESSAGE_DIGEST_OID | back to summary |
|---|---|
| public static final ObjectIdentifier MESSAGE_DIGEST_OID | |
| oid | back to summary |
|---|---|
| private final ObjectIdentifier oid The OID of this attribute. | |
| SIGNATURE_TIMESTAMP_TOKEN_OID | back to summary |
|---|---|
| public static final ObjectIdentifier SIGNATURE_TIMESTAMP_TOKEN_OID | |
| SIGNING_CERTIFICATE_OID | back to summary |
|---|---|
| public static final ObjectIdentifier SIGNING_CERTIFICATE_OID | |
| SIGNING_TIME_OID | back to summary |
|---|---|
| public static final ObjectIdentifier SIGNING_TIME_OID | |
| UNSTRUCTURED_ADDRESS_OID | back to summary |
|---|---|
| public static final ObjectIdentifier UNSTRUCTURED_ADDRESS_OID | |
| UNSTRUCTURED_NAME_OID | back to summary |
|---|---|
| public static final ObjectIdentifier UNSTRUCTURED_NAME_OID | |
| value | back to summary |
|---|---|
| private final Object value Value set of this attribute. Its class is given by
| |
| PKCS9Attribute | back to summary |
|---|---|
| public PKCS9Attribute(ObjectIdentifier oid, Object value) throws IllegalArgumentException Construct an attribute object from the attribute's OID and value. If the attribute is single-valued, provide only one value. If the attribute is multi-valued, provide an array containing all the values. Arrays of length zero are accepted, though probably useless. The
table gives the class that
| |
| PKCS9Attribute | back to summary |
|---|---|
| public PKCS9Attribute(DerValue derVal) throws IOException Construct a PKCS9Attribute from its encoding on an input stream.
| |
| add | back to summary |
|---|---|
| private static <T> void add(ObjectIdentifier oid, boolean singleValued, Class<T> valueClass, PKCS9Attribute. | |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Implements sun. Write the DER encoding of this attribute to an output stream. Note This method always encodes values of
ChallengePassword and UnstructuredAddress attributes as ASN.1
| |
| getName | back to summary |
|---|---|
| public String getName() Return the name of this attribute. | |
| getName | back to summary |
|---|---|
| public static String getName(ObjectIdentifier oid) Return the attribute name for a given OID or null if we don't recognize the oid. | |
| getOID | back to summary |
|---|---|
| public ObjectIdentifier getOID() Return the OID of this attribute. | |
| getOID | back to summary |
|---|---|
| public static ObjectIdentifier getOID(String name) Return the OID for a given attribute name or null if we don't recognize the name. | |
| getOIDs | back to summary |
|---|---|
| public static Set | |
| getValue | back to summary |
|---|---|
| public Object getValue() Get the value of this attribute. If the attribute is single-valued, return just the one value. If the attribute is multi-valued, return an array containing all the values. It is possible for this array to be of length 0. The table gives the class of the value returned, depending on the type of this attribute. | |
| indexOf | back to summary |
|---|---|
| pack-priv static int indexOf(byte b, byte[] bs, int start) Beginning the search at
| |
| isKnown | back to summary |
|---|---|
| public boolean isKnown() Returns if the attribute is known. Unknown attributes can be created from DER encoding with unknown OIDs. | |
| isSingleValued | back to summary |
|---|---|
| public boolean isSingleValued() Show whether this attribute is single-valued. | |
| throwSingleValuedException | back to summary |
|---|---|
| private void throwSingleValuedException() throws IOException Throw an exception when there are multiple values for a single-valued attribute. | |
| throwTagException | back to summary |
|---|---|
| private void throwTagException(byte tag) throws IOException Throw an exception when the tag on a value encoding is wrong for the attribute whose value it is. This method will only be called for known tags. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this attribute.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final PKCS9Attribute. | |
| private final PKCS9Attribute. | |
| private final boolean | singleValued
Record Component accessed by singleValued(). |
| private final Class | valueClass
Record Component accessed by valueClass(). |
| private final byte[] | valueTags
Record Component accessed by valueTags(). |
| Access | Constructor and Description |
|---|---|
| private | AttributeInfo(boolean singleValued, Class<?> valueClass, PKCS9Attribute.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv T | |
| public PKCS9Attribute. | |
| pack-priv DerOutputStream | |
| public PKCS9Attribute. | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public boolean | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public Class | |
| public byte[] |
| decoder | back to summary |
|---|---|
| private final PKCS9Attribute. Record Component accessed by decoder(). | |
| encoder | back to summary |
|---|---|
| private final PKCS9Attribute. Record Component accessed by encoder(). | |
| singleValued | back to summary |
|---|---|
| private final boolean singleValued Record Component accessed by singleValued(). | |
| valueClass | back to summary |
|---|---|
| private final Class<?> valueClass Record Component accessed by valueClass(). | |
| valueTags | back to summary |
|---|---|
| private final byte[] valueTags Record Component accessed by valueTags(). | |
| AttributeInfo | back to summary |
|---|---|
| private AttributeInfo(boolean singleValued, Class<?> valueClass, PKCS9Attribute. | |
| decode | back to summary |
|---|---|
| pack-priv T decode(DerValue d) throws IOException | |
| decoder | back to summary |
|---|---|
| public PKCS9Attribute. Record Component getter of decoder. | |
| encode | back to summary |
|---|---|
pack-priv DerOutputStream encode(Object o)
| |
| encoder | back to summary |
|---|---|
| public PKCS9Attribute. Record Component getter of encoder. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| singleValued | back to summary |
|---|---|
| public boolean singleValued() Record Component getter of singleValued. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| valueClass | back to summary |
|---|---|
| public Class Record Component getter of valueClass. | |
| valueTags | back to summary |
|---|---|
| public byte[] valueTags() Record Component getter of valueTags. | |
| decode | back to summary |
|---|---|
| public R decode(DerValue t) throws IOException | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream t, R r) | |