iaik.cms
Class UnknownKeyAttribute

java.lang.Object
  extended by iaik.cms.KeyAttribute
      extended by iaik.cms.UnknownKeyAttribute

public class UnknownKeyAttribute
extends KeyAttribute

This class implements any unknown Key Attribute. It tries to show as much information as possible about the key attribute.

An Unknown Key Attribute is a key attribute for which no particular implementation is registered.

When decoding a OtherKeyAttribute of unkonwn type, a UnknownKeyAttribute object is created for the unknown KeyAttribute allowing to query for information about the KeyAttribute.

See Also:
KeyAttribute, OtherKeyAttribute

Constructor Summary
UnknownKeyAttribute(ObjectID keyAttrID)
          Creates a new unknown key attribute from the given object identifier.
 
Method Summary
 void decode(ASN1Object obj)
          Reads the ASN.1 representation of the unknown key attribute.
 boolean equals(java.lang.Object obj)
          Alwasy returns false.
 ObjectID getKeyAttributeID()
          Returns the key attribute ID of the unknown key attribute.
 java.lang.String getName()
          Returns the key attribute id of the unknown key attribute as String representation.
 int hashCode()
          Returns a hashcode for this identity.
 ASN1Object toASN1Object()
          Creates an ASN1Object representing this unknown key attribute.
 java.lang.String toString()
          Returns a string that represents the contents of this unknown key attribute.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownKeyAttribute

public UnknownKeyAttribute(ObjectID keyAttrID)
Creates a new unknown key attribute from the given object identifier.

Parameters:
keyAttrID - the key attribute ID identifying the unknown key attribute
Method Detail

getKeyAttributeID

public ObjectID getKeyAttributeID()
Returns the key attribute ID of the unknown key attribute.

Specified by:
getKeyAttributeID in class KeyAttribute
Returns:
the key attribute ID of the unknown key attribute

getName

public java.lang.String getName()
Returns the key attribute id of the unknown key attribute as String representation.

Overrides:
getName in class KeyAttribute
Returns:
a String representation of the key attribute id of the unknown key attribute

decode

public void decode(ASN1Object obj)
Reads the ASN.1 representation of the unknown key attribute.

Specified by:
decode in class KeyAttribute
Parameters:
obj - the ASN1Object representing the unknown key attribute

toASN1Object

public ASN1Object toASN1Object()
Creates an ASN1Object representing this unknown key attribute.

Specified by:
toASN1Object in class KeyAttribute
Returns:
the unknown key attribute as ASN1Object

hashCode

public int hashCode()
Returns a hashcode for this identity.

Specified by:
hashCode in class KeyAttribute
Returns:
a hash code for this identity

equals

public boolean equals(java.lang.Object obj)
Alwasy returns false.

Specified by:
equals in class KeyAttribute
Parameters:
obj - the object to be compared with this KeyAttribute
Returns:
false

toString

public java.lang.String toString()
Returns a string that represents the contents of this unknown key attribute.

Specified by:
toString in class KeyAttribute
Returns:
the string representation

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

IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC