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 Clearance
attribute from its ASN.1 representation
a descendant of SecurityCategory
is created
if there exists a registered
implementation of the SecurityCategory value identified by the
SecurityCategory's type
OID. If no implementation exists, an
UnknownSecurityCategory
is returned allowing to get
and parse the ASN.1 representation of the SecurityCategory
value.
SecurityCategory
,
Clearance
Constructor and Description |
---|
UnknownSecurityCategory(ObjectID type)
Creates a new unknown SecurityCategory value from the given object identifier.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(ASN1Object obj)
Reads the ASN.1 representation of the unknown SecurityCategory value.
|
ObjectID |
getType()
Returns the SecurityCategory type the unknown SecurityCategory value belongs to.
|
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.
|
public UnknownSecurityCategory(ObjectID type)
type
- the OID identifying the type the unknown SecurityCategory value belongs topublic ObjectID getType()
getType
in class SecurityCategory
public void decode(ASN1Object obj)
obj
- the ASN1Object representing the unknown SecurityCategory valuepublic ASN1Object toASN1Object()
Because of implicit tagging this method anytime will return an implicit
tagged context specific object (see SecurityCategory
for more information.
public java.lang.String toString()
toString
in class SecurityCategory