kz.gamma.asn1.x509
Class Certificate

java.lang.Object
  extended by kz.gamma.asn1.ASN1Encodable
      extended by kz.gamma.asn1.x509.Certificate
All Implemented Interfaces:
DEREncodable

public class Certificate
extends ASN1Encodable

an X509Certificate structure.

  Certificate ::= SEQUENCE {
      tbsCertificate          TBSCertificate,
      signatureAlgorithm      AlgorithmIdentifier,
      signature               BIT STRING
  }
 


Field Summary
(package private)  ASN1Sequence seq
           
(package private)  DERBitString sig
           
(package private)  AlgorithmIdentifier sigAlgId
           
(package private)  TBSCertificate tbsCert
           
 
Fields inherited from class kz.gamma.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
private Certificate(ASN1Sequence seq)
           
 
Method Summary
 Time getEndDate()
           
static Certificate getInstance(ASN1TaggedObject obj, boolean explicit)
           
static Certificate getInstance(java.lang.Object obj)
           
 X500Name getIssuer()
           
 DERInteger getSerialNumber()
           
 DERBitString getSignature()
           
 AlgorithmIdentifier getSignatureAlgorithm()
           
 Time getStartDate()
           
 X500Name getSubject()
           
 SubjectPublicKeyInfo getSubjectPublicKeyInfo()
           
 TBSCertificate getTBSCertificate()
           
 DERInteger getVersion()
           
 int getVersionNumber()
           
 DERObject toASN1Object()
           
 
Methods inherited from class kz.gamma.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seq

ASN1Sequence seq

tbsCert

TBSCertificate tbsCert

sigAlgId

AlgorithmIdentifier sigAlgId

sig

DERBitString sig
Constructor Detail

Certificate

private Certificate(ASN1Sequence seq)
Method Detail

getInstance

public static Certificate getInstance(ASN1TaggedObject obj,
                                      boolean explicit)

getInstance

public static Certificate getInstance(java.lang.Object obj)

getTBSCertificate

public TBSCertificate getTBSCertificate()

getVersion

public DERInteger getVersion()

getVersionNumber

public int getVersionNumber()

getSerialNumber

public DERInteger getSerialNumber()

getIssuer

public X500Name getIssuer()

getStartDate

public Time getStartDate()

getEndDate

public Time getEndDate()

getSubject

public X500Name getSubject()

getSubjectPublicKeyInfo

public SubjectPublicKeyInfo getSubjectPublicKeyInfo()

getSignatureAlgorithm

public AlgorithmIdentifier getSignatureAlgorithm()

getSignature

public DERBitString getSignature()

toASN1Object

public DERObject toASN1Object()
Specified by:
toASN1Object in class ASN1Encodable


Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.