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-debug-jdk15to18 Show documentation
Show all versions of bcutil-debug-jdk15to18 Show documentation
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.5 to JDK 1.8.
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;
}
}