public class UnknownKeyAttribute extends KeyAttribute
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.
KeyAttribute
,
OtherKeyAttribute
Constructor and Description |
---|
UnknownKeyAttribute(iaik.asn1.ObjectID keyAttrID)
Creates a new unknown key attribute from the given object identifier.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(iaik.asn1.ASN1Object obj)
Reads the ASN.1 representation of the unknown key attribute.
|
boolean |
equals(java.lang.Object obj)
Alwasy returns
false . |
iaik.asn1.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.
|
iaik.asn1.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.
|
public UnknownKeyAttribute(iaik.asn1.ObjectID keyAttrID)
keyAttrID
- the key attribute ID identifying the unknown key attributepublic iaik.asn1.ObjectID getKeyAttributeID()
getKeyAttributeID
in class KeyAttribute
public java.lang.String getName()
getName
in class KeyAttribute
public void decode(iaik.asn1.ASN1Object obj)
decode
in class KeyAttribute
obj
- the ASN1Object representing the unknown key attributepublic iaik.asn1.ASN1Object toASN1Object()
toASN1Object
in class KeyAttribute
public int hashCode()
hashCode
in class KeyAttribute
public boolean equals(java.lang.Object obj)
false
.equals
in class KeyAttribute
obj
- the object to be compared with this KeyAttributefalse
public java.lang.String toString()
toString
in class KeyAttribute