Class C509CSRTemplateResponse


  • public class C509CSRTemplateResponse
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      C509CSRTemplateResponse​(org.bouncycastle.cbor.c509.C509CertificationRequestTemplate template, Source source)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getSource()  
      org.bouncycastle.cbor.c509.C509CertificationRequestTemplate getTemplate()
      Return the certification request template.
      boolean hasTemplate()
      Return true if the server supplied a certification request template.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • C509CSRTemplateResponse

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

      • 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:
        java.lang.IllegalStateException - if the server did not supply one.
      • getSource

        public java.lang.Object getSource()