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 with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.

There is a newer version: 2.0.3
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