iaik.asn1.structures
Class UnknownAttributeValue

java.lang.Object
  |
  +--iaik.asn1.structures.AttributeValue
        |
        +--iaik.asn1.structures.UnknownAttributeValue
All Implemented Interfaces:
ASN1Type

public class UnknownAttributeValue
extends AttributeValue

This class implements any unknown AttributeValue. It tries to show as much information as possible about the attribute value.

An Unknown AttributeValue is an attribute value for which there exists no registered implementation.

When calling method getAttributeValue to get the value of some particular Attribute, a descendant of AttributeValue is created if there exists an implementation of the attribute value identified by the attribute´s type OID. If no implementation exists, an UnknownAttributeValue is returned allowing to get and parse the ASN.1 representation of the attribute value.

Version:
File Revision 7
See Also:
Attribute, AttributeValue

Constructor Summary
UnknownAttributeValue(ObjectID attributeType)
          Creates a new unknown attribute value from the given object identifier.
 
Method Summary
 void decode(ASN1Object obj)
          Reads the ASN.1 representation of the unknown attribute value.
 ObjectID getAttributeType()
          Returns the attribute type the unknown attribute value belongs to.
 String getName()
          Returns the attribute type of the unknown attribute value as String representation.
 ASN1Object toASN1Object()
          Returns an ASN1Object representing this unknown attribute value.
 String toString()
          Returns a string that represents the contents of this unknown attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownAttributeValue

public UnknownAttributeValue(ObjectID attributeType)
Creates a new unknown attribute value from the given object identifier.
Parameters:
attributeType - the OID identifying the type the unknown attribute value belongs to
Method Detail

getAttributeType

public ObjectID getAttributeType()
Returns the attribute type the unknown attribute value belongs to.
Overrides:
getAttributeType in class AttributeValue
Returns:
the attribute type the unknown attribute value belongs to

getName

public String getName()
Returns the attribute type of the unknown attribute value as String representation.
Overrides:
getName in class AttributeValue
Returns:
a String representation of the unknown attribute type OID

decode

public void decode(ASN1Object obj)
Reads the ASN.1 representation of the unknown attribute value.
Parameters:
obj - the ASN1Object representing the unknown attribute value

toASN1Object

public ASN1Object toASN1Object()
Returns an ASN1Object representing this unknown attribute value.

Returns:
the unknown attribute value as ASN1Object

toString

public String toString()
Returns a string that represents the contents of this unknown attribute value.
Overrides:
toString in class AttributeValue
Returns:
the string representation

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK