Package org.bouncycastle.est
Class C509CSRTemplateResponse
- java.lang.Object
-
- org.bouncycastle.est.C509CSRTemplateResponse
-
public class C509CSRTemplateResponse extends java.lang.ObjectHolder 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). MirrorsCSRRequestResponse: a server that has no template for the client answers 204 or 404, in which casehasTemplate()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.ObjectgetSource()org.bouncycastle.cbor.c509.C509CertificationRequestTemplategetTemplate()Return the certification request template.booleanhasTemplate()Return true if the server supplied a certification request template.
-
-
-
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()
-
-