org.bouncycastle.asn1.BERApplicationSpecific Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-ext-jdk15on Show documentation
Show all versions of bcprov-ext-jdk15on 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.5 to JDK 1.8. Note: this package includes the NTRU encryption algorithms.
The newest version!
package org.bouncycastle.asn1;
import java.io.IOException;
/**
* An indefinite-length encoding version of an ASN.1 ApplicationSpecific object.
*
* @deprecated Will be removed. See comments for
* {@link ASN1ApplicationSpecific}.
*/
public class BERApplicationSpecific
extends ASN1ApplicationSpecific
{
/**
* Create an application specific object with an explicit tag
*
* @param tagNo the tag number for this object.
* @param baseEncodable the object to be contained.
*/
public BERApplicationSpecific(int tagNo, ASN1Encodable baseEncodable) throws IOException
{
this(true, tagNo, baseEncodable);
}
/**
* Create an application specific object with the tagging style given by the value of explicit.
*
* @param explicit true if the object is explicitly tagged.
* @param tagNo the tag number for this object.
* @param baseEncodable the object to be contained.
*/
public BERApplicationSpecific(boolean explicit, int tagNo, ASN1Encodable baseEncodable) throws IOException
{
super(new BERTaggedObject(explicit, BERTags.APPLICATION, tagNo, baseEncodable));
}
/**
* Create an application specific object which is marked as constructed
*
* @param tagNo the tag number for this object.
* @param contentsElements the objects making up the application specific object.
*/
public BERApplicationSpecific(int tagNo, ASN1EncodableVector contentsElements)
{
super(new BERTaggedObject(false, BERTags.APPLICATION, tagNo, BERFactory.createSequence(contentsElements)));
}
BERApplicationSpecific(ASN1TaggedObject taggedObject)
{
super(taggedObject);
}
}