public static enum Credential.CredentialType extends Enum<Credential.CredentialType>
| Enum Constant and Description |
|---|
PASSPHRASE_CREDENTIAL |
USER_CREDENTIAL |
| Modifier and Type | Method and Description |
|---|---|
<T> Class<T> |
getClassType() |
boolean |
hasPasswordField() |
boolean |
hasUserField() |
boolean |
isClassType(Credential credential) |
static Credential.CredentialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Credential.CredentialType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final Credential.CredentialType PASSPHRASE_CREDENTIAL
public static final Credential.CredentialType USER_CREDENTIAL
public static Credential.CredentialType[] values()
for (Credential.CredentialType c : Credential.CredentialType.values())
System.out.println(c);
public static Credential.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 <T> Class<T> getClassType()
public boolean isClassType(Credential credential)
public boolean hasUserField()
public boolean hasPasswordField()