Package org.libvirt
Enum ConnectAuth.CredentialType
- java.lang.Object
-
- java.lang.Enum<ConnectAuth.CredentialType>
-
- org.libvirt.ConnectAuth.CredentialType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConnectAuth.CredentialType>
- Enclosing class:
- ConnectAuth
public static enum ConnectAuth.CredentialType extends java.lang.Enum<ConnectAuth.CredentialType>
- Author:
- stoty
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VIR_CRED_AUTHNAME
Identify to authorize asVIR_CRED_CNONCE
client supplies a nonceVIR_CRED_ECHOPROMPT
Challenge responseVIR_CRED_EXTERNAL
Externally managed credential More may be added - expect the unexpectedVIR_CRED_LANGUAGE
RFC 1766 languages, comma separatedVIR_CRED_NOECHOPROMPT
Challenge responseVIR_CRED_NONE
Fake credential so that the ordinal value equls the c value.VIR_CRED_PASSPHRASE
Passphrase secretVIR_CRED_REALM
Authentication realmVIR_CRED_USERNAME
Identity to act as
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectAuth.CredentialType
mapFromInt(int t)
int
mapToInt()
Maps the java CredentialType Enum to libvirt's integer constantstatic ConnectAuth.CredentialType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConnectAuth.CredentialType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIR_CRED_NONE
public static final ConnectAuth.CredentialType VIR_CRED_NONE
Fake credential so that the ordinal value equls the c value.
-
VIR_CRED_USERNAME
public static final ConnectAuth.CredentialType VIR_CRED_USERNAME
Identity to act as
-
VIR_CRED_AUTHNAME
public static final ConnectAuth.CredentialType VIR_CRED_AUTHNAME
Identify to authorize as
-
VIR_CRED_LANGUAGE
public static final ConnectAuth.CredentialType VIR_CRED_LANGUAGE
RFC 1766 languages, comma separated
-
VIR_CRED_CNONCE
public static final ConnectAuth.CredentialType VIR_CRED_CNONCE
client supplies a nonce
-
VIR_CRED_PASSPHRASE
public static final ConnectAuth.CredentialType VIR_CRED_PASSPHRASE
Passphrase secret
-
VIR_CRED_ECHOPROMPT
public static final ConnectAuth.CredentialType VIR_CRED_ECHOPROMPT
Challenge response
-
VIR_CRED_NOECHOPROMPT
public static final ConnectAuth.CredentialType VIR_CRED_NOECHOPROMPT
Challenge response
-
VIR_CRED_REALM
public static final ConnectAuth.CredentialType VIR_CRED_REALM
Authentication realm
-
VIR_CRED_EXTERNAL
public static final ConnectAuth.CredentialType VIR_CRED_EXTERNAL
Externally managed credential More may be added - expect the unexpected
-
-
Method Detail
-
values
public static ConnectAuth.CredentialType[] 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 (ConnectAuth.CredentialType c : ConnectAuth.CredentialType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectAuth.CredentialType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
mapToInt
public int mapToInt()
Maps the java CredentialType Enum to libvirt's integer constant- Returns:
- The integer equivalent
-
mapFromInt
public static ConnectAuth.CredentialType mapFromInt(int t)
-
-