Package org.onosproject.protocol.rest
Enum RestSBDevice.AuthenticationScheme
- java.lang.Object
-
- java.lang.Enum<RestSBDevice.AuthenticationScheme>
-
- org.onosproject.protocol.rest.RestSBDevice.AuthenticationScheme
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RestSBDevice.AuthenticationScheme>
- Enclosing interface:
- RestSBDevice
public static enum RestSBDevice.AuthenticationScheme extends java.lang.Enum<RestSBDevice.AuthenticationScheme>
REST Authentication schemes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASICNO_AUTHENTICATIONOAUTHOAUTH2
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestSBDevice.AuthenticationSchemevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RestSBDevice.AuthenticationScheme[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_AUTHENTICATION
public static final RestSBDevice.AuthenticationScheme NO_AUTHENTICATION
-
BASIC
public static final RestSBDevice.AuthenticationScheme BASIC
-
OAUTH
public static final RestSBDevice.AuthenticationScheme OAUTH
-
OAUTH2
public static final RestSBDevice.AuthenticationScheme OAUTH2
-
-
Method Detail
-
values
public static RestSBDevice.AuthenticationScheme[] 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 (RestSBDevice.AuthenticationScheme c : RestSBDevice.AuthenticationScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestSBDevice.AuthenticationScheme 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
-
-