public class UnknownSecurityCategory extends SecurityCategory
An Unknown SecurityCategory value is a SecurityCategory value for which there
exists no registered
implementation.
When decoding a the SecurityCategory component contained in an ESSSecurityLabel
from its ASN.1 representation
a descendant of SecurityCategory
is created
if there exists an registered
implementation of the SecurityCategory value identified by the
SecurityCategory type
OID. If no implementation exists, an
UnknownSecurityCategory
is returned allowing to get
and parse the ASN.1 representation of the SecurityCategory
value.
SecurityCategory
,
ESSSecurityLabel
Constructor and Description |
---|
UnknownSecurityCategory(iaik.asn1.ObjectID type)
Creates a new unknown SecurityCategory value 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 SecurityCategory value.
|
boolean |
equals(java.lang.Object obj)
Compares this
SecurityCategory to the specified object. |
iaik.asn1.ObjectID |
getType()
Returns the SecurityCategory type the unknown SecurityCategory value belongs to.
|
iaik.asn1.ASN1Object |
toASN1Object()
Returns an ASN1Object representing this unknown SecurityCategory value.
|
java.lang.String |
toString()
Returns a string that represents the contents of this unknown SecurityCategory value.
|
getName, hashCode
public UnknownSecurityCategory(iaik.asn1.ObjectID type)
type
- the OID identifying the type the unknown SecurityCategory value belongs topublic iaik.asn1.ObjectID getType()
getType
in class SecurityCategory
public void decode(iaik.asn1.ASN1Object obj)
obj
- the ASN1Object representing the unknown SecurityCategory valuepublic iaik.asn1.ASN1Object toASN1Object()
Because of implicit tagging this method anytime will return an implicit
tagged context specific object (see SecurityCategory
for more information.
public boolean equals(java.lang.Object obj)
SecurityCategory
to the specified object.
equals
in class SecurityCategory
obj
- the object to compare this SecurityCategory
against.true
, if the given object is equal to this
SecurityCategory
,
false
otherwisepublic java.lang.String toString()
toString
in class SecurityCategory