Enum SSHAuthenticator.Mode
- java.lang.Object
-
- java.lang.Enum<SSHAuthenticator.Mode>
-
- com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<SSHAuthenticator.Mode>
- Enclosing class:
- SSHAuthenticator<C,U extends com.cloudbees.plugins.credentials.common.StandardUsernameCredentials>
public static enum SSHAuthenticator.Mode extends Enum<SSHAuthenticator.Mode>
Reflects the different styles of applying authentication.- Since:
- 0.2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_CONNECT
ThisSSHAuthenticator
performs authentication after establishing the connection.BEFORE_CONNECT
ThisSSHAuthenticator
performs authentication before establishing the connection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SSHAuthenticator.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SSHAuthenticator.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_CONNECT
public static final SSHAuthenticator.Mode BEFORE_CONNECT
ThisSSHAuthenticator
performs authentication before establishing the connection.
-
AFTER_CONNECT
public static final SSHAuthenticator.Mode AFTER_CONNECT
ThisSSHAuthenticator
performs authentication after establishing the connection.
-
-
Method Detail
-
values
public static SSHAuthenticator.Mode[] 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 (SSHAuthenticator.Mode c : SSHAuthenticator.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SSHAuthenticator.Mode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-