Class Certificate

java.lang.Object
org.apache.harmony.security.x509.Certificate

public final class Certificate
extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the X.509 certificate. Its ASN notation is as follows (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure. Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):
  Certificate  ::=  SEQUENCE  {
      tbsCertificate       TBSCertificate,
      signatureAlgorithm   AlgorithmIdentifier,
      signatureValue       BIT STRING
  }
 
  • Field Details

    • ASN1

      public static final ASN1Sequence ASN1
      X.509 Certificate encoder/decoder.
  • Constructor Details

  • Method Details

    • getTbsCertificate

      public TBSCertificate getTbsCertificate()
      Returns the value of tbsCertificate field of the structure.
    • getSignatureValue

      public byte[] getSignatureValue()
      Returns the value of signatureValue field of the structure.
    • toString

      public String toString()
      Description copied from class: Object
      Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
         getClass().getName() + '@' + Integer.toHexString(hashCode())

      See Writing a useful toString method if you intend implementing your own toString method.

      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.
    • getEncoded

      public byte[] getEncoded()
      Returns ASN.1 encoded form of this X.509 TBSCertificate value.