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

org.bouncycastle.oer.its.ieee1609dot2.Certificate Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctls. This jar contains APIs for JDK 1.8 and up.

There is a newer version: 1.79
Show newest version
package org.bouncycastle.oer.its.ieee1609dot2;

import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.oer.its.ieee1609dot2.basetypes.Signature;
import org.bouncycastle.oer.its.ieee1609dot2.basetypes.UINT8;

/**
 * Certificate ::= CertificateBase (ImplicitCertificate | ExplicitCertificate)
 */
public class Certificate
    extends CertificateBase
{
    public Certificate(UINT8 version, CertificateType type, IssuerIdentifier issuer, ToBeSignedCertificate toBeSignedCertificate, Signature signature)
    {
        super(version, type, issuer, toBeSignedCertificate, signature);
    }

    public Certificate(CertificateBase base)
    {
        this(base.getVersion(), base.getType(), base.getIssuer(), base.getToBeSigned(), base.getSignature());
    }

    protected Certificate(ASN1Sequence seq)
    {
        super(seq);
    }


    public static Certificate getInstance(Object value)
    {
        if (value instanceof Certificate)
        {
            return (Certificate)value;
        }

        if (value != null)
        {
            return new Certificate(ASN1Sequence.getInstance(value));
        }
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy