Class C509CSRTemplateResponse
java.lang.Object
org.bouncycastle.est.C509CSRTemplateResponse
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
ConstructorsConstructorDescriptionC509CSRTemplateResponse(org.bouncycastle.cbor.c509.C509CertificationRequestTemplate template, Source source) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.cbor.c509.C509CertificationRequestTemplateReturn the certification request template.booleanReturn true if the server supplied a certification request template.
-
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
-