@ProviderType public static final class AuthenticationStrategy.ClientCertificateAuthentication extends Object implements AuthenticationStrategy
Secure sessions must be used to establish TLS/SSL-encrypted client connections to the event
broker. TransportSecurityStrategy.TLS
is required with Client Certificate Authentication.
For a client to use a Client Certificate Authentication scheme, the hosting event broker must be configured for TLS/SSL connections, and Client Certificate Verification must be enabled for the particular Message VPN to which the client connects.
AuthenticationStrategy.BasicUserNamePassword, AuthenticationStrategy.ClientCertificateAuthentication, AuthenticationStrategy.Kerberos, AuthenticationStrategy.OAuth2
Modifier and Type | Method and Description |
---|---|
TypedProperties |
getAuthenticationConfiguration() |
static AuthenticationStrategy.ClientCertificateAuthentication |
of(String keystoreURL,
String keystorePassword)
A factory method that creates a new instance to be used for Client Certificate
Authentication.
|
static AuthenticationStrategy.ClientCertificateAuthentication |
of(String keystoreURL,
String keystorePassword,
SecureStoreFormat keyStoreFormat)
A factory method that creates a new instance to be used for Client Certificate
Authentication.
|
AuthenticationStrategy.ClientCertificateAuthentication |
withKeyStorePrivateKeyAlias(String privateKeyAlias)
Configures a private key-alias to be used when there is more than one private key is present
in a keystore.
|
AuthenticationStrategy.ClientCertificateAuthentication |
withPrivateKeyPassword(String privateKeyPassword)
Configure the password to use to decrypt the private key from the keystore.
|
AuthenticationStrategy.ClientCertificateAuthentication |
withPrivateKeyPassword(String privateKeyPassword,
String privateKeyAlias)
Configures password that will be used to decrypt the private key from the key store.
|
AuthenticationStrategy.ClientCertificateAuthentication |
withTrustStore(String trustStoreURL,
String trustStorePassword,
SecureStoreFormat trustStoreFormat)
Configures non-default truststore.
|
AuthenticationStrategy.ClientCertificateAuthentication |
withUserName(String userName)
Configures client-username.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration
public TypedProperties getAuthenticationConfiguration()
public static AuthenticationStrategy.ClientCertificateAuthentication of(String keystoreURL, String keystorePassword)
KeyStore.getDefaultType()
type for
keystore. No private key-alias is provided, so that it is presumed that keystore contains
only a single private key.keystoreURL
- the URL or path-formatted location of the keystorekeystorePassword
- the keystore passwordpublic static AuthenticationStrategy.ClientCertificateAuthentication of(String keystoreURL, String keystorePassword, SecureStoreFormat keyStoreFormat)
keystoreURL
- the URL or path-formatted location of the keystorekeystorePassword
- the keystore passwordkeyStoreFormat
- the format of the keystore filepublic AuthenticationStrategy.ClientCertificateAuthentication withKeyStorePrivateKeyAlias(String privateKeyAlias)
privateKeyAlias
- the private key-aliaspublic AuthenticationStrategy.ClientCertificateAuthentication withPrivateKeyPassword(String privateKeyPassword)
privateKeyPassword
- the password for the private key if different from a keystore
password.public AuthenticationStrategy.ClientCertificateAuthentication withPrivateKeyPassword(String privateKeyPassword, String privateKeyAlias)
If there is only one private key entry in the keystore then use AuthenticationStrategy.ClientCertificateAuthentication.withPrivateKeyPassword(String)
privateKeyPassword
- the password for the private key if it is different from the
keystore passwordprivateKeyAlias
- the private key-aliaspublic AuthenticationStrategy.ClientCertificateAuthentication withTrustStore(String trustStoreURL, String trustStorePassword, SecureStoreFormat trustStoreFormat)
trustStoreURL
- the URL of the truststore filetrustStorePassword
- the password for the truststore filetrustStoreFormat
- the format of the truststore filepublic AuthenticationStrategy.ClientCertificateAuthentication withUserName(String userName)
userName
- user nameCopyright 2019-2024 Solace Corporation. All rights reserved.