|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.pkcs.PKCS9Attributes
A set of attributes of class PKCS9Attribute.
Constructor Summary | |
PKCS9Attributes(DerInputStream in)
Construct a set of PKCS9 Attributes from its contents of its DER encoding on a DerInputStream. |
|
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. |
|
PKCS9Attributes(PKCS9Attribute[] attribs)
Construct a set of PKCS9 Attributes from the given array of PKCS9 attributes. |
Method Summary | |
void |
encode(byte tag,
OutputStream out)
Put the DER encoding of this PKCS9 attribute set on an DerOutputStream, tagged with the given implicit tag. |
PKCS9Attribute |
getAttribute(ObjectIdentifier oid)
Get an attribute from this set. |
PKCS9Attribute |
getAttribute(String name)
Get an attribute from this set. |
PKCS9Attribute[] |
getAttributes()
Get an array of all attributes in this set, in order of OID. |
Object |
getAttributeValue(ObjectIdentifier oid)
Get an attribute value by OID. |
Object |
getAttributeValue(String name)
Get an attribute value by type name. |
byte[] |
getDerEncoding()
Return the DER encoding of this attribute set, tagged with DerValue.tag_SetOf. |
String |
toString()
Returns the PKCS9 block in a printable string form. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PKCS9Attributes(ObjectIdentifier[] permittedAttributes, DerInputStream in) throws IOException
permittedAttributes
- Array of attribute OIDs that will be accepted.buf
- the contents of the DER encoding of the attribute set.PKCS9Attribute
public PKCS9Attributes(DerInputStream in) throws IOException
PKCS9Attribute
public PKCS9Attributes(PKCS9Attribute[] attribs) throws IllegalArgumentException, IOException
attribs
must be
supported by class PKCS9Attribute.PKCS9Attribute
Method Detail |
public void encode(byte tag, OutputStream out) throws IOException
tag
- the implicit tag to use in the DER encoding.out
- the output stream on which to put the DER encoding.public byte[] getDerEncoding() throws IOException
public PKCS9Attribute getAttribute(ObjectIdentifier oid)
public PKCS9Attribute getAttribute(String name)
public PKCS9Attribute[] getAttributes()
public Object getAttributeValue(ObjectIdentifier oid) throws IOException
public Object getAttributeValue(String name) throws IOException
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |