iaik.cms
Class EncodedAttributeValue

java.lang.Object
  extended by iaik.asn1.structures.AttributeValue
      extended by iaik.cms.EncodedAttributeValue
All Implemented Interfaces:
ASN1Type

public class EncodedAttributeValue
extends AttributeValue

CMS AttributeValue together with its BER encoded representation.


Method Summary
 void decode(ASN1Object obj)
          Decodes the given ASN.1 AttributeValue.
 ObjectID getAttributeType()
          Returns the attribute type OID identifying the type to which this Attribute Value belongs.
 byte[] getEncoded()
          Gets the encoded AttributeValue.
 AttributeValue getValue()
          Gets the AttributeValue.
 ASN1Object toASN1Object()
          Returns this AttributeValue as ASN1Object.
 java.lang.String toString()
          Returns a String representation of the AttributeValue.
 
Methods inherited from class iaik.asn1.structures.AttributeValue
getName, multipleAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAttributeType

public ObjectID getAttributeType()
Returns the attribute type OID identifying the type to which this Attribute Value belongs.

Specified by:
getAttributeType in class AttributeValue
Returns:
the attribute type OID identifying the type of Attribute value this class implements

decode

public void decode(ASN1Object obj)
            throws CodingException
Decodes the given ASN.1 AttributeValue.

Parameters:
obj - the AttributeValue as ASN1Object
Throws:
CodingException - if the ASN1Object could not be parsed

toASN1Object

public ASN1Object toASN1Object()
                        throws CodingException
Returns this AttributeValue as ASN1Object.

Returns:
this AttributeValue as ASN1Object
Throws:
CodingException - if the ASN1Object cannot be built

getValue

public AttributeValue getValue()
                        throws CodingException
Gets the AttributeValue.

Returns:
the AttributeValue
Throws:
CodingException - if an error occurs when parsing the (yet not parsed) attribute value

getEncoded

public byte[] getEncoded()
                  throws CodingException
Gets the encoded AttributeValue.

Returns:
the encoded AttributeValue (not cloned!)
Throws:
CodingException - if an error occurs when encoding the attribute value

toString

public java.lang.String toString()
Returns a String representation of the AttributeValue.

Specified by:
toString in class AttributeValue
Returns:
a String representation of the AttributeValue.

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 5.1, (c) 2002 IAIK, (c) 2003 - 2010 SIC