Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
Modifier and Type | Method and Description |
---|---|
Credential.Builder |
Credential.Builder.addOption(String optionName,
boolean optionValue)
Adds an option to the built credentials.
|
Credential.Builder |
Credential.Builder.addOption(String optionName,
int optionValue)
Adds an option to the built credentials.
|
Credential.Builder |
Credential.Builder.addOption(String optionName,
String optionValue)
Adds an option to the built credentials.
|
Credential.Builder |
Credential.Builder.authenticationType(String authenticationType)
Sets the value of the authentication type or mode that the credential
should be used with.
|
Credential.Builder |
Credential.Builder.authenticator(Authenticator authenticator)
Sets the value of the template authenticator for the credential.
|
static Credential.Builder |
Credential.builder()
Creates a
Credential.Builder for creating a Credential . |
Credential.Builder |
Credential.Builder.database(String database)
Sets the value of the database the credential are valid for.
|
Credential.Builder |
Credential.Builder.file(File file)
Sets the value of the file containing the full credentials.
|
Credential.Builder |
Credential.Builder.kerberos()
Sets the value of the authentication type or mode that the credential
should be used with to Kerberos.
|
Credential.Builder |
Credential.Builder.ldap()
Sets the value of the authentication type or mode that the credential
should be used with LDAP via PLAIN SASL.
|
Credential.Builder |
Credential.Builder.mongodbCR()
Sets the value of the authentication type or mode that the credential
should be used with to MongoDB Challenge/Response.
|
Credential.Builder |
Credential.Builder.pam()
Sets the value of the authentication type or mode that the credential
should be used with PAM via PLAIN SASL.
|
Credential.Builder |
Credential.Builder.password(char[] password)
Sets the value of the password for the credential set.
|
Credential.Builder |
Credential.Builder.plainSasl()
Sets the value of the authentication type or mode that the credential
should be used with to PLAIN SASL.
|
Credential.Builder |
Credential.Builder.reset()
Resets the builder to a known state.
|
Credential.Builder |
Credential.Builder.setAuthenticationType(String authenticationType)
Sets the value of the authentication type or mode that the credential
should be used with.
|
Credential.Builder |
Credential.Builder.setAuthenticator(Authenticator authenticator)
Sets the value of the template authenticator for the credential.
|
Credential.Builder |
Credential.Builder.setDatabase(String database)
Sets the value of the database the credential are valid for.
|
Credential.Builder |
Credential.Builder.setFile(File file)
Sets the value of the file containing the full credentials.
|
Credential.Builder |
Credential.Builder.setPassword(char[] password)
Sets the value of the password for the credential set.
|
Credential.Builder |
Credential.Builder.setUserName(String userName)
Sets the value of the user name for the credential set.
|
Credential.Builder |
Credential.Builder.userName(String userName)
Sets the value of the user name for the credential set.
|
Credential.Builder |
Credential.Builder.x509()
Sets the value of the authentication type or mode that the credential
should be used with to x.509 client certificates exchanged via the
TLS connection.
|
Credential.Builder |
Credential.Builder.x509(X509Certificate cert)
Sets the
user name to that of the x.509
certificate subject name and then sets the value of the
authentication type or mode that the credential should be used with
to x.509 client certificates exchanged via the TLS connection. |
Modifier and Type | Method and Description |
---|---|
void |
MongoClientConfiguration.addCredential(Credential.Builder credentials)
Adds the specified credentials to the configuration.
|
Constructor and Description |
---|
Credential(Credential.Builder builder)
Creates a new Credential.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.