org.bouncycastle.asn1.ASN1TaggedObjectParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-debug-jdk14 Show documentation
Show all versions of bcprov-debug-jdk14 Show documentation
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.4.
package org.bouncycastle.asn1;
import java.io.IOException;
/**
* Interface for the parsing of a generic tagged ASN.1 object.
*/
public interface ASN1TaggedObjectParser
extends ASN1Encodable, InMemoryRepresentable
{
/**
* Return the tag number associated with the underlying tagged object.
* @return the object's tag number.
*/
int getTagNo();
/**
* Return a parser for the actual object tagged.
*
* @param tag the primitive tag value for the object tagged originally.
* @param isExplicit true if the tagging was done explicitly.
* @return a parser for the tagged object.
* @throws IOException if a parser cannot be constructed.
*/
ASN1Encodable getObjectParser(int tag, boolean isExplicit)
throws IOException;
}