| Modifier and Type | Field and Description |
|---|---|
| private final Hashtable | attributes
Attributes in this set indexed by OID. |
| private final byte[] | derEncoding
The DER encoding of this attribute set. |
| private boolean | |
| private final Hashtable | permittedAttributes
The keys of this hashtable are the OIDs of permitted attributes. |
| Access | Constructor and Description |
|---|---|
| public | PKCS9Attributes(ObjectIdentifier[]
Array of attribute OIDs that will be accepted. permittedAttributes, DerInputStream the contents of the DER encoding of the attribute set. in)Construct a set of PKCS9 Attributes from its DER encoding on a DerInputStream, accepting only attributes with OIDs on the given list. |
| public | PKCS9Attributes(DerInputStream
the contents of the DER encoding of the attribute set. in)Construct a set of PKCS9 Attributes from the contents of its DER encoding on a DerInputStream. |
| public | PKCS9Attributes(DerInputStream
the contents of the DER encoding of the attribute set. in, boolean If true then any attributes
not supported by the PKCS9Attribute class are ignored. Otherwise,
unsupported attributes cause an exception to be thrown. ignoreUnsupportedAttributes)Construct a set of PKCS9 Attributes from the contents of its DER encoding on a DerInputStream. |
| public | PKCS9Attributes(PKCS9Attribute[] attribs)
Construct a set of PKCS9 Attributes from the given array of PKCS9 attributes. |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | decode(DerInputStream
the contents of the DER encoding of the attribute set. in)Decode this set of PKCS9 attributes from the contents of its DER encoding. |
| public void | encode(byte
the implicit tag to use in the DER encoding. tag, DerOutputStream the output stream on which to put the DER encoding. out)Put the DER encoding of this PKCS9 attribute set on an DerOutputStream, tagged with the given implicit tag. |
| private byte[] | |
| public PKCS9Attribute | |
| public PKCS9Attribute | |
| public Object | |
| public Object | |
| public byte[] | |
| public String |
| attributes | back to summary |
|---|---|
| private final Hashtable<ObjectIdentifier, PKCS9Attribute> attributes Attributes in this set indexed by OID. | |
| derEncoding | back to summary |
|---|---|
| private final byte[] derEncoding The DER encoding of this attribute set. The tag byte must be DerValue.tag_SetOf. | |
| ignoreUnsupportedAttributes | back to summary |
|---|---|
| private boolean ignoreUnsupportedAttributes | |
| permittedAttributes | back to summary |
|---|---|
| private final Hashtable<ObjectIdentifier, ObjectIdentifier> permittedAttributes The keys of this hashtable are the OIDs of permitted attributes. | |
| PKCS9Attributes | back to summary |
|---|---|
| public PKCS9Attributes(ObjectIdentifier[] permittedAttributes, DerInputStream in) throws IOException Construct a set of PKCS9 Attributes from its DER encoding on a DerInputStream, accepting only attributes with OIDs on the given list. If the array is null, accept all attributes supported by class PKCS9Attribute.
| |
| PKCS9Attributes | back to summary |
|---|---|
| public PKCS9Attributes(DerInputStream in) throws IOException Construct a set of PKCS9 Attributes from the contents of its DER encoding on a DerInputStream. Accept all attributes supported by class PKCS9Attribute and reject any unsupported attributes.
| |
| PKCS9Attributes | back to summary |
|---|---|
| public PKCS9Attributes(DerInputStream in, boolean ignoreUnsupportedAttributes) throws IOException Construct a set of PKCS9 Attributes from the contents of its DER encoding on a DerInputStream. Accept all attributes supported by class PKCS9Attribute and ignore any unsupported attributes, if directed.
| |
| PKCS9Attributes | back to summary |
|---|---|
| public PKCS9Attributes(PKCS9Attribute[] attribs) throws IllegalArgumentException Construct a set of PKCS9 Attributes from the given array of
PKCS9 attributes.
DER encoding on a DerInputStream. All attributes in
| |
| decode | back to summary |
|---|---|
| private byte[] decode(DerInputStream in) throws IOException Decode this set of PKCS9 attributes from the contents of its DER encoding. Ignores unsupported attributes when directed.
| |
| encode | back to summary |
|---|---|
| public void encode(byte tag, DerOutputStream out) Put the DER encoding of this PKCS9 attribute set on an DerOutputStream, tagged with the given implicit tag.
| |
| generateDerEncoding | back to summary |
|---|---|
| private byte[] generateDerEncoding() | |
| getAttribute | back to summary |
|---|---|
| public PKCS9Attribute getAttribute(ObjectIdentifier oid) Get an attribute from this set. | |
| getAttribute | back to summary |
|---|---|
| public PKCS9Attribute getAttribute(String name) Get an attribute from this set. | |
| getAttributeValue | back to summary |
|---|---|
| public Object getAttributeValue(ObjectIdentifier oid) throws IOException Get an attribute value by OID. | |
| getAttributeValue | back to summary |
|---|---|
| public Object getAttributeValue(String name) throws IOException Get an attribute value by type name. | |
| getDerEncoding | back to summary |
|---|---|
| public byte[] getDerEncoding() Return the DER encoding of this attribute set, tagged with DerValue.tag_SetOf. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the PKCS9 block in a printable string form.
| |