Package ro.sync.ui.application.security
Enum ResponseType
- java.lang.Object
-
- java.lang.Enum<ResponseType>
-
- ro.sync.ui.application.security.ResponseType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ResponseType>
@API(type=NOT_EXTENDABLE, src=PUBLIC) public enum ResponseType extends java.lang.Enum<ResponseType>
The types of responses allowed when an external link wants to connect to the application.- Since:
- 22
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TRUSTED
Trusted means the connection is accepted without user interaction/confirmation.UNKNOWN
This provider doesn't know or care about this host.UNTRUSTED
The provider marks this host as untrusted and the connection is refused no matter what other providers say.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResponseType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ResponseType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUSTED
public static final ResponseType TRUSTED
Trusted means the connection is accepted without user interaction/confirmation.
-
UNKNOWN
public static final ResponseType UNKNOWN
This provider doesn't know or care about this host. The security engine will probably ask the user for confirmation.
-
UNTRUSTED
public static final ResponseType UNTRUSTED
The provider marks this host as untrusted and the connection is refused no matter what other providers say.
-
-
Method Detail
-
values
public static ResponseType[] 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 (ResponseType c : ResponseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResponseType 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
-
-