public static class SecurityCredentials.Builder extends Object
| Constructor and Description |
|---|
SecurityCredentials.Builder()
Construct a builder that produces a SecurityCredentials.
|
SecurityCredentials.Builder(String username,
String password)
Construct a builder that produces a SecurityCredentials
|
| Modifier and Type | Method and Description |
|---|---|
SecurityCredentials |
build() |
SecurityCredentials.Builder |
withCACert(String filename,
boolean isKeystore)
Provide the CA certificate as a filename.
|
SecurityCredentials.Builder |
withCACert(String keyStore,
String password)
Provide the CA certificate via a keystore file.
|
SecurityCredentials.Builder |
withPassword(String password)
Set the Riak password.
|
SecurityCredentials.Builder |
withUsername(String username)
Set the Riak username.
|
public SecurityCredentials.Builder()
public SecurityCredentials.Builder withUsername(String username)
username - the name of the Riak user.public SecurityCredentials.Builder withPassword(String password)
public SecurityCredentials.Builder withCACert(String filename, boolean isKeystore)
The certificate will be loaded from the file.
filename - public SecurityCredentials.Builder withCACert(String keyStore, String password)
The keystore will be loaded and used as the trust manager for TLS/SSL.
keyStore - the filename of the keystore.password - the password for the keystore.public SecurityCredentials build()
Copyright © 2014. All rights reserved.