public class HttpConstraintElement
extends java.lang.Object
Constructor and Description |
---|
HttpConstraintElement ()
Constructs an element with a default semantic of
PERMIT . |
HttpConstraintElement (ServletSecurity.EmptyRoleSemantic semantic)
Constructs an element with the specified default authorization semantic.
|
HttpConstraintElement (ServletSecurity.EmptyRoleSemantic semantic,
ServletSecurity.TransportGuarantee guarantee,
java.lang.String... roleNames)
Constructs an element with the specified transport guarantee,
semantic and role names.
|
HttpConstraintElement (ServletSecurity.TransportGuarantee guarantee,
java.lang.String[] roleNames)
Constructs an element with the specified transport guarantee and
semantic.
|
Modifier and Type | Method and Description |
---|---|
ServletSecurity.EmptyRoleSemantic |
getEmptyRoleSemantic ()
Returns the default authorization semantic.
|
java.lang.String[] |
getRolesAllowed ()
Returns the names of the authorized roles.
|
ServletSecurity.TransportGuarantee |
getTransportGuarantee ()
Returns the transport guarantee.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public HttpConstraintElement()
PERMIT
.public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic semantic)
public HttpConstraintElement(ServletSecurity.TransportGuarantee guarantee, java.lang.String[] roleNames)
public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic semantic, ServletSecurity.TransportGuarantee guarantee, java.lang.String... roleNames)
public ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
public ServletSecurity.TransportGuarantee getTransportGuarantee()
public java.lang.String[] getRolesAllowed()
getEmptyRoleSemantic()
.