Package org.eclipse.jetty.security
Enum Class Constraint.Transport
- All Implemented Interfaces:
Serializable
,Comparable<Constraint.Transport>
,Constable
- Enclosing interface:
- Constraint
The constraints requirement for the transport
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe transport can be either secure or not secure.Inherit the transport constraint from a less specific constraint when passed toConstraint.combine(Constraint, Constraint)
, otherwise act asANY
.The transport must be secure (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic Constraint.Transport
Returns the enum constant of this class with the specified name.static Constraint.Transport[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SECURE
The transport must be secure (e.g. TLS) -
ANY
The transport can be either secure or not secure. -
INHERIT
Inherit the transport constraint from a less specific constraint when passed toConstraint.combine(Constraint, Constraint)
, otherwise act asANY
.
-
-
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
-