public class CredentialConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
Optional<String> |
authMechanism
Configures the authentication mechanism to use if a credential was supplied.
|
Map<String,String> |
authMechanismProperties
Allows passing authentication mechanism properties.
|
Optional<String> |
authSource
Configures the source of the authentication credentials.
|
Optional<String> |
password
Configures the password.
|
Optional<String> |
username
Configures the username.
|
| Constructor and Description |
|---|
CredentialConfig() |
@ConfigItem public Optional<String> username
@ConfigItem public Optional<String> password
@ConfigItem public Optional<String> authMechanism
MONGO-CR|GSSAPI|PLAIN|MONGODB-X509@ConfigItem public Optional<String> authSource
admin. This option is only
respected when using the MONGO-CR mechanism (the default).@ConfigItem public Map<String,String> authMechanismProperties
Copyright © 2021 JBoss by Red Hat. All rights reserved.