Package org.bouncycastle.asn1.crmf
Class CertTemplate
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.crmf.CertTemplate
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class CertTemplate
extends org.bouncycastle.asn1.ASN1Object
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.Extensions
static CertTemplate
org.bouncycastle.asn1.x500.X500Name
org.bouncycastle.asn1.ASN1BitString
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
org.bouncycastle.asn1.ASN1Integer
org.bouncycastle.asn1.x509.AlgorithmIdentifier
org.bouncycastle.asn1.x500.X500Name
org.bouncycastle.asn1.ASN1BitString
int
Return Version - -1 if not set.org.bouncycastle.asn1.ASN1Primitive
CertTemplate ::= SEQUENCE { version [0] Version OPTIONAL, serialNumber [1] INTEGER OPTIONAL, signingAlg [2] AlgorithmIdentifier OPTIONAL, issuer [3] Name OPTIONAL, validity [4] OptionalValidity OPTIONAL, subject [5] Name OPTIONAL, publicKey [6] SubjectPublicKeyInfo OPTIONAL, issuerUID [7] UniqueIdentifier OPTIONAL, subjectUID [8] UniqueIdentifier OPTIONAL, extensions [9] Extensions OPTIONAL }Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Method Details
-
getInstance
-
getVersion
public int getVersion()Return Version - -1 if not set.- Returns:
- Version value.
-
getSerialNumber
public org.bouncycastle.asn1.ASN1Integer getSerialNumber() -
getSigningAlg
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSigningAlg() -
getIssuer
public org.bouncycastle.asn1.x500.X500Name getIssuer() -
getValidity
-
getSubject
public org.bouncycastle.asn1.x500.X500Name getSubject() -
getPublicKey
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getPublicKey() -
getIssuerUID
public org.bouncycastle.asn1.ASN1BitString getIssuerUID() -
getSubjectUID
public org.bouncycastle.asn1.ASN1BitString getSubjectUID() -
getExtensions
public org.bouncycastle.asn1.x509.Extensions getExtensions() -
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()CertTemplate ::= SEQUENCE { version [0] Version OPTIONAL, serialNumber [1] INTEGER OPTIONAL, signingAlg [2] AlgorithmIdentifier OPTIONAL, issuer [3] Name OPTIONAL, validity [4] OptionalValidity OPTIONAL, subject [5] Name OPTIONAL, publicKey [6] SubjectPublicKeyInfo OPTIONAL, issuerUID [7] UniqueIdentifier OPTIONAL, subjectUID [8] UniqueIdentifier OPTIONAL, extensions [9] Extensions OPTIONAL }
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a basic ASN.1 object representation.
-