public class HttpConstraintElement extends Object
HttpConstraint
for
programmatic configuration of security constraints.Constructor and 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,
String... rolesAllowed)
Construct a constraint with an empty role semantic, a transport guarantee
and roles.
|
HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee,
String... rolesAllowed)
Construct a constraint with a transport guarantee and roles.
|
Modifier and Type | Method and Description |
---|---|
ServletSecurity.EmptyRoleSemantic |
getEmptyRoleSemantic()
TODO
|
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, 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, 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
constraintIllegalArgumentException
- if roles are specified when DENY is usedpublic ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
public ServletSecurity.TransportGuarantee getTransportGuarantee()
public String[] getRolesAllowed()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.