Class Signature

  • All Implemented Interfaces:
    org.mozilla.jss.asn1.ASN1Value

    public class Signature
    extends java.lang.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$
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Signature.Template
      A Template for decoding Request.
    • Constructor Summary

      Constructors 
      Constructor Description
      Signature​(org.mozilla.jss.pkix.primitive.AlgorithmIdentifier signatureAlgorithm, org.mozilla.jss.asn1.BIT_STRING signature, org.mozilla.jss.asn1.SEQUENCE certs)  
    • Constructor Detail

      • Signature

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

      • 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​(java.io.OutputStream ostream)
                    throws java.io.IOException
        Specified by:
        encode in interface org.mozilla.jss.asn1.ASN1Value
        Throws:
        java.io.IOException
      • encode

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