ASN1Explicitpublic final class ASN1Explicit extends ASN1Constructured This class represents explicitly tagged ASN.1 type. |
Fields Summary |
---|
public final ASN1Type | typeTagged type |
Constructors Summary |
---|
public ASN1Explicit(int tagNumber, ASN1Type type)Constructs explicitly tagged ASN.1 type
with context-specific tag class and specified tag number.
this(CLASS_CONTEXTSPECIFIC, tagNumber, type);
| public ASN1Explicit(int tagClass, int tagNumber, ASN1Type type)Constructs explicitly tagged ASN.1 type.
super(tagClass, tagNumber);
this.type = type;
|
Methods Summary |
---|
public java.lang.Object | decode(BerInputStream in)
if (constrId != in.tag) {
throw new ASN1Exception(
Messages.getString("security.13F", //$NON-NLS-1$
new Object[] { in.tagOffset, Integer.toHexString(constrId),
Integer.toHexString(in.tag) }));
}
in.next();
in.content = type.decode(in);
if (in.isVerify) {
return null;
}
return getDecodedObject(in);
| public void | encodeContent(BerOutputStream out)
out.encodeExplicit(this);
| public void | setEncodingContent(BerOutputStream out)
out.getExplicitLength(this);
| public java.lang.String | toString()
//FIXME fix performance
return super.toString() + " for type " + type; //$NON-NLS-1$
|
|