class AcmeClient.RequestBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.shredzone.acme4j.util.CSRBuilder |
csrb
Certificate request builder
|
Constructor and Description |
---|
RequestBuilder(java.security.KeyPair domainKeyPair,
java.util.Map<AcmeClient.RequestInfo,java.lang.String> certRequestInfo,
java.util.List<java.lang.String> domains)
Creates a wrapper object around acme4j certificate request builder to build a certificate
request for the target domains.
|
Modifier and Type | Method and Description |
---|---|
void |
saveAsCrtFile(java.io.File crtFile)
Save this request as a PEM certificate request file.
|
byte[] |
toBytes()
Gets this certificate request as PKCS#10 data bytes.
|
private final org.shredzone.acme4j.util.CSRBuilder csrb
public RequestBuilder(java.security.KeyPair domainKeyPair, java.util.Map<AcmeClient.RequestInfo,java.lang.String> certRequestInfo, java.util.List<java.lang.String> domains) throws java.io.IOException
domainKeyPair
- The domain private certificatecertRequestInfo
- The certificate request informationdomains
- The requested domainsjava.io.IOException
- iff the underlined certificate request can't be signed by the provided domain
private key.public void saveAsCrtFile(java.io.File crtFile) throws java.io.IOException
crtFile
- The given certificate request file to save this certificate request.java.io.IOException
- Iff the requested IO write is failed.public byte[] toBytes() throws java.io.IOException
java.io.IOException
- iff this IO operation is failed.