public class TlsCertificateSigningRequestPerformer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXPECTED_ONE_CERTIFICATE |
static java.lang.String |
EXPECTED_RESPONSE_TO_CONTAIN_CERTIFICATE |
static java.lang.String |
EXPECTED_RESPONSE_TO_CONTAIN_HMAC |
static java.lang.String |
RECEIVED_RESPONSE_CODE |
static java.lang.String |
UNEXPECTED_HMAC_RECEIVED_POSSIBLE_MAN_IN_THE_MIDDLE |
| Modifier | Constructor and Description |
|---|---|
protected |
TlsCertificateSigningRequestPerformer(java.util.function.Supplier<org.apache.http.impl.client.HttpClientBuilder> httpClientBuilderSupplier,
TlsClientConfig tlsClientConfig) |
|
TlsCertificateSigningRequestPerformer(TlsClientConfig tlsClientConfig) |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate[] |
perform(java.security.KeyPair keyPair)
Submits a CSR to the Certificate authority, checks the resulting hmac, and returns the chain if everything succeeds
|
public static final java.lang.String RECEIVED_RESPONSE_CODE
public static final java.lang.String EXPECTED_ONE_CERTIFICATE
public static final java.lang.String EXPECTED_RESPONSE_TO_CONTAIN_HMAC
public static final java.lang.String UNEXPECTED_HMAC_RECEIVED_POSSIBLE_MAN_IN_THE_MIDDLE
public static final java.lang.String EXPECTED_RESPONSE_TO_CONTAIN_CERTIFICATE
public TlsCertificateSigningRequestPerformer(TlsClientConfig tlsClientConfig) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionprotected TlsCertificateSigningRequestPerformer(java.util.function.Supplier<org.apache.http.impl.client.HttpClientBuilder> httpClientBuilderSupplier,
TlsClientConfig tlsClientConfig)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic java.security.cert.X509Certificate[] perform(java.security.KeyPair keyPair)
throws java.io.IOException
keyPair - the keypair to generate the csr forjava.io.IOException - if there is a problem during the process