|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.oyster.der.DERObject
org.enhydra.oyster.der.DERSequencePr
org.enhydra.oyster.cms.Attribute
Attribute class is super class for all DER encoded attributes represented in
ASN.1 notation according to RFC2630. Attributes are implemented in CMSSignedObject
which is used in designing signed messages.
Constructor Summary | |
Attribute(int[] arrayID0)
Array of numbers is used for construction of desired attribute's DER Object Identifier. |
|
Attribute(java.lang.String id0,
java.lang.String typeOfAttribute0)
This constructor has two different forms, depend on parameter typeConstruction0, which can be: DOT_SEPARATED_ARRAY or NAME_STRING. |
Method Summary | |
void |
addContent(byte[] parameter0)
Adding value to defined DER encoded attribute |
byte[] |
getDEREncoded()
Returns DER encoded attribute |
Methods inherited from class org.enhydra.oyster.der.DERObject |
getContentOctets, getContentPartSize, getIdentifierOctet, getLengthOctets, getLengthPartSize, getTagClassType, getTagComplexity, getTagTypeNumber, getTotalSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Attribute(java.lang.String id0, java.lang.String typeOfAttribute0) throws SMIMEException
id0
- defines Object Identifier in representation determined by second
parameter - typeConstruction0.typeOfAttribute0
- can take values DOT_SEPARATED_ARRAY and NAME_STRING
SMIMEException
- if wrong type of parameters are passed to the
constructor. Also, it can be thrown from super class constructor or its
addContent method.public Attribute(int[] arrayID0) throws SMIMEException
arrayID0
- array of given numbers (example: for ID_MESSAGEDIGEST
attributes, numbers are 1, 2, 840, 113549, 1, 9 and 4).
SMIMEException
- if wrong type of parameters are passed to the
constructor. Also, it can be thrown from super class constructor or its
addContent method.Method Detail |
public void addContent(byte[] parameter0) throws SMIMEException
addContent
in class DERSequencePr
parameter0
- byte array representation of attribute value
SMIMEException
- thrown from super class addContent method.public byte[] getDEREncoded() throws SMIMEException
getDEREncoded
in class DERObject
SMIMEException
- if no value was added to attribute. Also, it can
be thrown from super class getDEREncoded method.
|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |