org.libvirt
Enum ConnectAuth.CredentialType

java.lang.Object
  extended by java.lang.Enum<ConnectAuth.CredentialType>
      extended by 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
VIR_CRED_AUTHNAME
          Identify to authorize as
VIR_CRED_CNONCE
          client supplies a nonce
VIR_CRED_ECHOPROMPT
          Challenge response
VIR_CRED_EXTERNAL
          Externally managed credential More may be added - expect the unexpected
VIR_CRED_LANGUAGE
          RFC 1766 languages, comma separated
VIR_CRED_NOECHOPROMPT
          Challenge response
VIR_CRED_NONE
          Fake credential so that the ordinal value equls the c value.
VIR_CRED_PASSPHRASE
          Passphrase secret
VIR_CRED_REALM
          Authentication realm
VIR_CRED_USERNAME
          Identity to act as
 
Method Summary
 int mapToInt()
          Maps the java CredentialType Enum to libvirt's integer constant
static 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
java.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