public class SecurityConstraint
extends java.lang.Object
A security constraint which allows you to place restrictions on a number of paths.
Given a single or multiple paths, you can set the roles that allow access.
By default we set a single path to "/". The list of paths can easily be overridden.
In the adapter configuration file this class is aliased as jetty-security-constraint which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
SecurityConstraint() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstraintName() |
java.util.List<java.lang.String> |
getPaths() |
java.lang.String |
getRoles() |
boolean |
isMustAuthenticate() |
void |
setConstraintName(java.lang.String constraintName) |
void |
setMustAuthenticate(boolean mustAuthenticate) |
void |
setPaths(java.util.List<java.lang.String> paths) |
void |
setRoles(java.lang.String roles) |
public java.lang.String getRoles()
public void setRoles(java.lang.String roles)
public boolean isMustAuthenticate()
public void setMustAuthenticate(boolean mustAuthenticate)
public java.lang.String getConstraintName()
public void setConstraintName(java.lang.String constraintName)
public java.util.List<java.lang.String> getPaths()
public void setPaths(java.util.List<java.lang.String> paths)