HttpMethodConstraintElement
, ServletSecurityElement
public class HttpConstraintElement
extends java.lang.Object
HttpConstraint
for
programmatic configuration of security constraints.Constructor | Description |
---|---|
HttpConstraintElement() |
Default constraint is permit with no transport guarantee.
|
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic) |
Construct a constraint with an empty role semantic.
|
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic,
ServletSecurity.TransportGuarantee transportGuarantee,
java.lang.String... rolesAllowed) |
Construct a constraint with an empty role semantic, a transport guarantee
and roles.
|
HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee,
java.lang.String... rolesAllowed) |
Construct a constraint with a transport guarantee and roles.
|
Modifier and Type | Method | Description |
---|---|---|
ServletSecurity.EmptyRoleSemantic |
getEmptyRoleSemantic() |
TODO
|
java.lang.String[] |
getRolesAllowed() |
TODO
|
ServletSecurity.TransportGuarantee |
getTransportGuarantee() |
TODO
|
public HttpConstraintElement()
public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
ServletSecurity.EmptyRoleSemantic.DENY
.emptyRoleSemantic
- The empty role semantic to apply to the newly
created constraintpublic HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee, java.lang.String... rolesAllowed)
transportGuarantee
- The transport guarantee to apply to the newly
created constraintrolesAllowed
- The roles to associate with the newly created
constraintpublic HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic, ServletSecurity.TransportGuarantee transportGuarantee, java.lang.String... rolesAllowed)
emptyRoleSemantic
- The empty role semantic to apply to the newly
created constrainttransportGuarantee
- The transport guarantee to apply to the newly
created constraintrolesAllowed
- The roles to associate with the newly created
constraintjava.lang.IllegalArgumentException
- if roles are specified when DENY is usedpublic ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
public ServletSecurity.TransportGuarantee getTransportGuarantee()
public java.lang.String[] getRolesAllowed()
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.