Enum VaultAuthenticationType
- java.lang.Object
-
- java.lang.Enum<VaultAuthenticationType>
-
- io.quarkus.vault.runtime.config.VaultAuthenticationType
-
- All Implemented Interfaces:
Serializable,Comparable<VaultAuthenticationType>
public enum VaultAuthenticationType extends Enum<VaultAuthenticationType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROLERole & secret vault authentication using AppRole methodKUBERNETESKubernetes vault authenticationUSERPASSUsername & password vault authentication
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VaultAuthenticationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static VaultAuthenticationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KUBERNETES
public static final VaultAuthenticationType 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
public static final VaultAuthenticationType 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
public static final VaultAuthenticationType APPROLE
Role & secret vault authentication using AppRole methodhttps://www.vaultproject.io/api/auth/approle/index.html
-
-
Method Detail
-
values
public static VaultAuthenticationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VaultAuthenticationType c : VaultAuthenticationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VaultAuthenticationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-