org.bouncycastle.oer.its.ieee1609dot2.Certificate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcutil-fips Show documentation
Show all versions of bcutil-fips Show documentation
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.
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;
}
}