org.libvirt

Class ConnectAuth.CredentialType

public static class ConnectAuth.CredentialType extends Enum<ConnectAuth.CredentialType>

Author: stoty

Field Summary
static List<ConnectAuth.CredentialType>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
static ConnectAuth.CredentialTypeVIR_CRED_AUTHNAME
Identify to authorize as
static ConnectAuth.CredentialTypeVIR_CRED_CNONCE
client supplies a nonce
static ConnectAuth.CredentialTypeVIR_CRED_ECHOPROMPT
Challenge response
static ConnectAuth.CredentialTypeVIR_CRED_EXTERNAL
Externally managed credential More may be added - expect the unexpected
static ConnectAuth.CredentialTypeVIR_CRED_LANGUAGE
RFC 1766 languages, comma separated
static ConnectAuth.CredentialTypeVIR_CRED_NOECHOPROMPT
Challenge response
static ConnectAuth.CredentialTypeVIR_CRED_NONE
Fake credential so that the ordinal value equls the c value.
static ConnectAuth.CredentialTypeVIR_CRED_PASSPHRASE
Passphrase secret
static ConnectAuth.CredentialTypeVIR_CRED_REALM
Authentication realm
static ConnectAuth.CredentialTypeVIR_CRED_USERNAME
Identity to act as
Method Summary
List<ConnectAuth.CredentialType>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static ConnectAuth.CredentialTypevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

VALUES

public static final List<ConnectAuth.CredentialType> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(CredentialType c : CredentialType.VALUES)
    System.out.println(c);

VIR_CRED_AUTHNAME

public static final ConnectAuth.CredentialType VIR_CRED_AUTHNAME
Identify to authorize as

VIR_CRED_CNONCE

public static final ConnectAuth.CredentialType VIR_CRED_CNONCE
client supplies a nonce

VIR_CRED_ECHOPROMPT

public static final ConnectAuth.CredentialType VIR_CRED_ECHOPROMPT
Challenge response

VIR_CRED_EXTERNAL

public static final ConnectAuth.CredentialType VIR_CRED_EXTERNAL
Externally managed credential More may be added - expect the unexpected

VIR_CRED_LANGUAGE

public static final ConnectAuth.CredentialType VIR_CRED_LANGUAGE
RFC 1766 languages, comma separated

VIR_CRED_NOECHOPROMPT

public static final ConnectAuth.CredentialType VIR_CRED_NOECHOPROMPT
Challenge response

VIR_CRED_NONE

public static final ConnectAuth.CredentialType VIR_CRED_NONE
Fake credential so that the ordinal value equls the c value.

VIR_CRED_PASSPHRASE

public static final ConnectAuth.CredentialType VIR_CRED_PASSPHRASE
Passphrase secret

VIR_CRED_REALM

public static final ConnectAuth.CredentialType VIR_CRED_REALM
Authentication realm

VIR_CRED_USERNAME

public static final ConnectAuth.CredentialType VIR_CRED_USERNAME
Identity to act as

Method Detail

family

public final List<ConnectAuth.CredentialType> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

valueOf

public static final ConnectAuth.CredentialType valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.