public class SSLContextFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
create(ClientIdentity clientIdentity)
Creates a SSLContext which can be used to parameterize your Rest client, in
order to support mutual TLS.
|
SSLContext |
create(String x509Certificates,
String rsaPrivateKey)
Creates a SSLContext which can be used to parameterize your Rest client, in
order to support mutual TLS.
|
KeyStore |
createKeyStore(ClientIdentity clientIdentity)
Initializes a KeyStore which can be used to parameterize your Rest client, in
order to support mutual TLS.
|
static SSLContextFactory |
getInstance() |
public static SSLContextFactory getInstance()
public SSLContext create(String x509Certificates, String rsaPrivateKey) throws GeneralSecurityException, IOException
x509Certificates - you can get from your Service Configuration
OAuth2ServiceConfiguration.getClientIdentity()rsaPrivateKey - you can get from your Service
ConfigurationOAuth2ServiceConfiguration.getClientIdentity()GeneralSecurityException - in case of key parsing errorsIOException - in case of KeyStore initialization errorspublic SSLContext create(ClientIdentity clientIdentity) throws GeneralSecurityException, IOException
clientIdentity - you can get from your Service Configuration
OAuth2ServiceConfiguration.getClientIdentity()GeneralSecurityException - in case of key parsing errorsIOException - in case of KeyStore initialization errorspublic KeyStore createKeyStore(ClientIdentity clientIdentity) throws GeneralSecurityException, IOException
clientIdentity - you can get from your Service Configuration
OAuth2ServiceConfiguration.getClientIdentity()GeneralSecurityException - in case of key parsing errorsIOException - in case of KeyStore initialization errorsCopyright © 2022. All rights reserved.