Package org.eclipse.jetty.util.security
Class Constraint
java.lang.Object
org.eclipse.jetty.util.security.Constraint
- All Implemented Interfaces:
Serializable
,Cloneable
@Deprecated(since="2021-05-27")
public class Constraint
extends Object
implements Cloneable, Serializable
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Constraint
Describe an auth and/or data constraint.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final String
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor.Constraint
(String name, String role) Deprecated.Convenience Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.boolean
Deprecated.int
Deprecated.getName()
Deprecated.String[]
getRoles()
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.Servlet Spec 3.1, pg 140boolean
Deprecated.boolean
Deprecated.void
setAuthenticate
(boolean authenticate) Deprecated.void
setDataConstraint
(int c) Deprecated.void
Deprecated.void
Deprecated.toString()
Deprecated.static boolean
validateMethod
(String method) Deprecated.
-
Field Details
-
__BASIC_AUTH
Deprecated.- See Also:
-
__FORM_AUTH
Deprecated.- See Also:
-
__DIGEST_AUTH
Deprecated.- See Also:
-
__CERT_AUTH
Deprecated.- See Also:
-
__CERT_AUTH2
Deprecated.- See Also:
-
__SPNEGO_AUTH
Deprecated.- See Also:
-
__NEGOTIATE_AUTH
Deprecated.- See Also:
-
__OPENID_AUTH
Deprecated.- See Also:
-
DC_UNSET
public static final int DC_UNSETDeprecated.- See Also:
-
DC_NONE
public static final int DC_NONEDeprecated.- See Also:
-
DC_INTEGRAL
public static final int DC_INTEGRALDeprecated.- See Also:
-
DC_CONFIDENTIAL
public static final int DC_CONFIDENTIALDeprecated.- See Also:
-
DC_FORBIDDEN
public static final int DC_FORBIDDENDeprecated.- See Also:
-
NONE
Deprecated.- See Also:
-
ANY_ROLE
Deprecated.- See Also:
-
ANY_AUTH
Deprecated.- See Also:
-
-
Constructor Details
-
Constraint
public Constraint()Deprecated.Constructor. -
Constraint
Deprecated.Convenience Constructor.- Parameters:
name
- the namerole
- the role
-
-
Method Details
-
validateMethod
Deprecated. -
clone
Deprecated.- Throws:
CloneNotSupportedException
-
setName
Deprecated.- Parameters:
name
- the name
-
getName
Deprecated. -
setRoles
Deprecated. -
isAnyRole
public boolean isAnyRole()Deprecated.- Returns:
- True if any user role is permitted.
-
isAnyAuth
public boolean isAnyAuth()Deprecated.Servlet Spec 3.1, pg 140- Returns:
- True if any authenticated user is permitted (ie a role "**" was specified in the constraint).
-
getRoles
Deprecated.- Returns:
- List of roles for this constraint.
-
hasRole
Deprecated.- Parameters:
role
- the role- Returns:
- True if the constraint contains the role.
-
setAuthenticate
public void setAuthenticate(boolean authenticate) Deprecated.- Parameters:
authenticate
- True if users must be authenticated
-
getAuthenticate
public boolean getAuthenticate()Deprecated.- Returns:
- True if the constraint requires request authentication
-
isForbidden
public boolean isForbidden()Deprecated.- Returns:
- True if authentication required but no roles set
-
setDataConstraint
public void setDataConstraint(int c) Deprecated.- Parameters:
c
- Data constrain indicator: 0=DC+NONE, 1=DC_INTEGRAL & 2=DC_CONFIDENTIAL
-
getDataConstraint
public int getDataConstraint()Deprecated.- Returns:
- Data constrain indicator: 0=DC+NONE, 1=DC_INTEGRAL & 2=DC_CONFIDENTIAL
-
hasDataConstraint
public boolean hasDataConstraint()Deprecated.- Returns:
- True if a data constraint has been set.
-
toString
Deprecated.
-