public class HttpConstraintElement
extends java.lang.Object
Constructor and Description |
---|
HttpConstraintElement()
Default constraint is permit with no transport guarantee.
|
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
Convenience constructor for
ServletSecurity.EmptyRoleSemantic.DENY . |
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic,
ServletSecurity.TransportGuarantee transportGuarantee,
java.lang.String... rolesAllowed) |
HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee,
java.lang.String... rolesAllowed)
Convenience constructor to specify transport guarantee and/or roles.
|
Modifier and Type | Method and Description |
---|---|
ServletSecurity.EmptyRoleSemantic |
getEmptyRoleSemantic() |
java.lang.String[] |
getRolesAllowed() |
ServletSecurity.TransportGuarantee |
getTransportGuarantee() |
public HttpConstraintElement()
public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
ServletSecurity.EmptyRoleSemantic.DENY
.public HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee, java.lang.String... rolesAllowed)
public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic, ServletSecurity.TransportGuarantee transportGuarantee, java.lang.String... rolesAllowed)
emptyRoleSemantic
- transportGuarantee
- rolesAllowed
- java.lang.IllegalArgumentException
- if roles are specified when DENY is usedpublic ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
public ServletSecurity.TransportGuarantee getTransportGuarantee()
public java.lang.String[] getRolesAllowed()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.