| java.lang.Object sun.security.pkcs.PKCS9Attributes
PKCS9Attributes | public class PKCS9Attributes (Code) | | A set of attributes of class PKCS9Attribute.
version: 1.8 02/02/00 author: Douglas Hoover |
Constructor Summary | |
public | PKCS9Attributes(ObjectIdentifier[] permittedAttributes, DerInputStream 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 in) Construct a set of PKCS9 Attributes from its 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.
DER encoding on a DerInputStream. |
PKCS9Attributes | public PKCS9Attributes(ObjectIdentifier[] permittedAttributes, DerInputStream in) throws IOException(Code) | | 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.
Parameters: permittedAttributes - Array of attribute OIDs that will be accepted. Parameters: buf - the contents of the DER encoding of the attribute set. exception: IOException - on i/o error, encoding syntax error, unacceptable orunsupported attribute, or duplicate attribute. See Also: PKCS9Attribute |
PKCS9Attributes | public PKCS9Attributes(DerInputStream in) throws IOException(Code) | | Construct a set of PKCS9 Attributes from its contents of its
DER encoding on a DerInputStream. Accept all attributes
supported by class PKCS9Attribute.
exception: IOException - on i/o error, encoding syntax error, or unsupported orduplicate attribute. See Also: PKCS9Attribute |
PKCS9Attributes | public PKCS9Attributes(PKCS9Attribute[] attribs) throws IllegalArgumentException, IOException(Code) | | Construct a set of PKCS9 Attributes from the given array of
PKCS9 attributes.
DER encoding on a DerInputStream. All attributes in
attribs must be
supported by class PKCS9Attribute.
exception: IOException - on i/o error, encoding syntax error, or unsupported orduplicate attribute. See Also: PKCS9Attribute |
castToDerEncoder | static DerEncoder[] castToDerEncoder(Object[] objs)(Code) | | Cast an object array whose components are
DerEncoder s to DerEncoder[] .
|
encode | public void encode(byte tag, OutputStream out) throws IOException(Code) | | Put the DER encoding of this PKCS9 attribute set on an
DerOutputStream, tagged with the given implicit tag.
Parameters: tag - the implicit tag to use in the DER encoding. Parameters: out - the output stream on which to put the DER encoding. exception: IOException - on output error. |
getAttributes | public PKCS9Attribute[] getAttributes()(Code) | | Get an array of all attributes in this set, in order of OID.
|
getDerEncoding | public byte[] getDerEncoding() throws IOException(Code) | | Return the DER encoding of this attribute set, tagged with
DerValue.tag_SetOf.
|
toString | public String toString()(Code) | | Returns the PKCS9 block in a printable string form.
|
|
|