All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.asn1.BERApplicationSpecific Maven / Gradle / Ivy

Go to download

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 and up.

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy