public enum CredentialType extends Enum<CredentialType>
| Enum Constant and Description |
|---|
CERTIFICATE
Indicates a credential of type
CertificateCredential. |
JSON
Indicates a credential of type
JsonCredential. |
PASSWORD
Indicates a credential of type
PasswordCredential. |
RSA
Indicates a credential of type
RsaCredential. |
SSH
Indicates a credential of type
SshCredential. |
USER
Indicates a credential of type
UserCredential. |
VALUE
Indicates a credential of type
ValueCredential. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getModelClass()
Get the class that models requests of the credential type.
|
String |
getValueType()
Get the type value that will be used in requests to CredHub.
|
String |
toString() |
static CredentialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CredentialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CredentialType PASSWORD
PasswordCredential.public static final CredentialType VALUE
ValueCredential.public static final CredentialType USER
UserCredential.public static final CredentialType RSA
RsaCredential.public static final CredentialType SSH
SshCredential.public static final CredentialType CERTIFICATE
CertificateCredential.public static final CredentialType JSON
JsonCredential.public static CredentialType[] values()
for (CredentialType c : CredentialType.values()) System.out.println(c);
public static CredentialType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValueType()
public Class<?> getModelClass()
public String toString()
toString in class Enum<CredentialType>