Class Signature

java.lang.Object
com.netscape.cmsutil.ocsp.Signature
All Implemented Interfaces:
org.mozilla.jss.asn1.ASN1Value

public class Signature extends Object implements org.mozilla.jss.asn1.ASN1Value
RFC 2560:
 Signature       ::=     SEQUENCE {
  signatureAlgorithm   AlgorithmIdentifier,
  signature            BIT STRING,
  certs                [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
 
Version:
$Revision$ $Date$
  • Constructor Details

    • Signature

      public Signature(org.mozilla.jss.pkix.primitive.AlgorithmIdentifier signatureAlgorithm, org.mozilla.jss.asn1.BIT_STRING signature, org.mozilla.jss.asn1.SEQUENCE certs)
  • Method Details

    • getSignatureAlgorithm

      public org.mozilla.jss.pkix.primitive.AlgorithmIdentifier getSignatureAlgorithm()
    • getSignature

      public org.mozilla.jss.asn1.BIT_STRING getSignature()
    • getCertificateCount

      public int getCertificateCount()
    • getCertificateAt

      public org.mozilla.jss.pkix.cert.Certificate getCertificateAt(int index)
    • getTag

      public org.mozilla.jss.asn1.Tag getTag()
      Specified by:
      getTag in interface org.mozilla.jss.asn1.ASN1Value
    • encode

      public void encode(OutputStream ostream) throws IOException
      Specified by:
      encode in interface org.mozilla.jss.asn1.ASN1Value
      Throws:
      IOException
    • encode

      public void encode(org.mozilla.jss.asn1.Tag implicitTag, OutputStream ostream) throws IOException
      Specified by:
      encode in interface org.mozilla.jss.asn1.ASN1Value
      Throws:
      IOException
    • getTemplate

      public static Signature.Template getTemplate()