Package org.libvirt
Enum Class ConnectAuth.CredentialType
- All Implemented Interfaces:
Serializable
,Comparable<ConnectAuth.CredentialType>
,Constable
- Enclosing class:
- ConnectAuth
- Author:
- stoty
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIdentify to authorize asclient supplies a nonceChallenge responseExternally managed credential More may be added - expect the unexpectedRFC 1766 languages, comma separatedChallenge responseFake credential so that the ordinal value equls the c value.Passphrase secretAuthentication realmIdentity to act as -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectAuth.CredentialType
mapFromInt
(int t) int
mapToInt()
Maps the java CredentialType Enum to libvirt's integer constantstatic ConnectAuth.CredentialType
Returns the enum constant of this class with the specified name.static ConnectAuth.CredentialType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VIR_CRED_NONE
Fake credential so that the ordinal value equls the c value. -
VIR_CRED_USERNAME
Identity to act as -
VIR_CRED_AUTHNAME
Identify to authorize as -
VIR_CRED_LANGUAGE
RFC 1766 languages, comma separated -
VIR_CRED_CNONCE
client supplies a nonce -
VIR_CRED_PASSPHRASE
Passphrase secret -
VIR_CRED_ECHOPROMPT
Challenge response -
VIR_CRED_NOECHOPROMPT
Challenge response -
VIR_CRED_REALM
Authentication realm -
VIR_CRED_EXTERNAL
Externally managed credential More may be added - expect the unexpected
-
-
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
-
mapToInt
public int mapToInt()Maps the java CredentialType Enum to libvirt's integer constant- Returns:
- The integer equivalent
-
mapFromInt
-