Class C509CSRTemplateResponse

java.lang.Object
org.bouncycastle.est.C509CSRTemplateResponse

public class C509CSRTemplateResponse extends Object
Holder class for the response to a GET /csrattrs request made with the C509 certification request template media type (Section 4.4 of draft-ietf-cose-cbor-encoded-cert-20). Mirrors CSRRequestResponse: a server that has no template for the client answers 204 or 404, in which case hasTemplate() is false.
  • Constructor Details

    • C509CSRTemplateResponse

      public C509CSRTemplateResponse(org.bouncycastle.cbor.c509.C509CertificationRequestTemplate template, Source source)
  • Method Details

    • hasTemplate

      public boolean hasTemplate()
      Return true if the server supplied a certification request template.
    • getTemplate

      public org.bouncycastle.cbor.c509.C509CertificationRequestTemplate getTemplate()
      Return the certification request template.
      Throws:
      IllegalStateException - if the server did not supply one.
    • getSource

      public Object getSource()