Package org.bouncycastle.asn1.ocsp

## Class Signature

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.ocsp.Signature

- All Implemented Interfaces:
    `ASN1Encodable`, `Encodable`

      public class Signature
      extends ASN1Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Signature​(AlgorithmIdentifier signatureAlgorithm, DERBitString signature)` |
    `Signature​(AlgorithmIdentifier signatureAlgorithm, DERBitString signature, ASN1Sequence certs)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ASN1Sequence` | `getCerts()` |
    `static Signature` | `getInstance​(java.lang.Object obj)` |
    `static Signature` | `getInstance​(ASN1TaggedObject obj, boolean explicit)` |
    `DERBitString` | `getSignature()` |
    `AlgorithmIdentifier` | `getSignatureAlgorithm()` |
    `ASN1Primitive` | `toASN1Primitive()` | Produce an object suitable for an ASN1OutputStream.

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Signature

          public Signature​(AlgorithmIdentifier signatureAlgorithm,
                           DERBitString signature)

    - #### Signature

          public Signature​(AlgorithmIdentifier signatureAlgorithm,
                           DERBitString signature,
                           ASN1Sequence certs)

  - ### Method Detail

    - #### getInstance

          public static Signature getInstance​(ASN1TaggedObject obj,
                                              boolean explicit)

    - #### getInstance

          public static Signature getInstance​(java.lang.Object obj)

    - #### getSignatureAlgorithm

          public AlgorithmIdentifier getSignatureAlgorithm()

    - #### getSignature

          public DERBitString getSignature()

    - #### getCerts

          public ASN1Sequence getCerts()

    - #### toASN1Primitive

          public ASN1Primitive toASN1Primitive()

      Produce an object suitable for an ASN1OutputStream.

           Signature       ::=     SEQUENCE {
               signatureAlgorithm      AlgorithmIdentifier,
               signature               BIT STRING,
               certs               [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL}

      Specified by:
        `toASN1Primitive` in interface `ASN1Encodable`
      Specified by:
        `toASN1Primitive` in class `ASN1Object`
      Returns:
        a primitive representation of this object.