Constructor and Description |
---|
SecurityConstraint()
Creates the security-constraint.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AbstractConstraint constraint)
Sets a custom constraint
|
void |
addAuthConstraint(AuthConstraint auth)
Adds the auth-constraint
|
void |
addConstraint(AbstractConstraint constraint)
Sets a custom constraint
|
void |
addIPConstraint(IPConstraint constraint)
Add an ip-constraint
|
void |
addRoleName(java.lang.String roleName)
Sets the role-name
|
void |
addURLPattern(java.lang.String pattern)
Sets the url-pattern
|
void |
addWebResourceCollection(WebResourceCollection resource)
Adds a web-resource-collection
|
AbstractConstraint |
getConstraint()
return the constraint
|
java.util.ArrayList<java.lang.String> |
getMethods(java.lang.String url)
Returns the applicable methods if the URL matches.
|
void |
init()
initialize
|
boolean |
isFallthrough()
Returns true for a fallthrough.
|
boolean |
isMatch(java.lang.String url)
Returns true if the URL matches.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setDisplayName(java.lang.String displayName)
Sets the display-name.
|
void |
setFallthrough(boolean isFallthrough) |
void |
setUserDataConstraint(UserDataConstraint constraint)
Sets the user-data-constraint
|
public void setDescription(java.lang.String description)
public void setDisplayName(java.lang.String displayName)
public void setFallthrough(boolean isFallthrough)
public void addURLPattern(java.lang.String pattern)
public void addWebResourceCollection(WebResourceCollection resource)
public void addRoleName(java.lang.String roleName)
public void addAuthConstraint(AuthConstraint auth)
public void setUserDataConstraint(UserDataConstraint constraint)
public void addIPConstraint(IPConstraint constraint)
public void addConstraint(AbstractConstraint constraint)
public void add(AbstractConstraint constraint)
@PostConstruct public void init()
public boolean isMatch(java.lang.String url)
public boolean isFallthrough()
public java.util.ArrayList<java.lang.String> getMethods(java.lang.String url)
public AbstractConstraint getConstraint()