Enum Class VaultAuthenticationType
- All Implemented Interfaces:
Serializable,Comparable<VaultAuthenticationType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRole & secret vault authentication using AppRole methodKubernetes vault authenticationUsername & password vault authentication -
Method Summary
Modifier and TypeMethodDescriptionstatic VaultAuthenticationTypeReturns the enum constant of this class with the specified name.static VaultAuthenticationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KUBERNETES
Kubernetes vault authenticationWhen running the application into kubernetes, it is possible to benefit from the vault/kubernetes integration for authentication. Once the kubernetes authentication has been enabled into vault, create a vault role associating one or more vault policies, with one or more service accounts and one or more namespaces. When selecting the kubernetes authentication type, specify the vault authentication role to use.
see https://www.vaultproject.io/api/auth/kubernetes/index.html
-
USERPASS
Username & password vault authenticationVault supports authentication through username and password. Before using it, userpass auth needs to be enabled in vault, and a user needs to be created with his password. This type of authentication is easy to use, and useful in development environments. When using in production, some care will have to be taken to keep some confidentiality on the password.
https://www.vaultproject.io/api/auth/userpass/index.html
-
APPROLE
Role & secret vault authentication using AppRole methodhttps://www.vaultproject.io/api/auth/approle/index.html
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-