Enum Class CredentialType
- All Implemented Interfaces:
Serializable
,Comparable<CredentialType>
,Constable
The types of credentials that can be written to CredHub.
- Author:
- Scott Frederick
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates a credential of typeCertificateCredential
.Indicates a credential of typeJsonCredential
.Indicates a credential of typePasswordCredential
.Indicates a credential of typeRsaCredential
.Indicates a credential of typeSshCredential
.Indicates a credential of typeUserCredential
.Indicates a credential of typeValueCredential
. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Get the class that models requests of the credential type.Get the type value that will be used in requests to CredHub.toString()
static CredentialType
Returns the enum constant of this class with the specified name.static CredentialType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PASSWORD
Indicates a credential of typePasswordCredential
. -
VALUE
Indicates a credential of typeValueCredential
. -
USER
Indicates a credential of typeUserCredential
. -
RSA
Indicates a credential of typeRsaCredential
. -
SSH
Indicates a credential of typeSshCredential
. -
CERTIFICATE
Indicates a credential of typeCertificateCredential
. -
JSON
Indicates a credential of typeJsonCredential
.
-
-
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
-
getValueType
Get the type value that will be used in requests to CredHub.- Returns:
- the type value
-
getModelClass
Get the class that models requests of the credential type.- Returns:
- the credential model class
-
toString
- Overrides:
toString
in classEnum<CredentialType>
-