Package io.undertow.servlet.api
Class SecurityInfo<T extends SecurityInfo>
- java.lang.Object
-
- io.undertow.servlet.api.SecurityInfo<T>
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
HttpMethodSecurityInfo
,SecurityConstraint
,ServletSecurityInfo
public class SecurityInfo<T extends SecurityInfo> extends java.lang.Object implements java.lang.Cloneable
- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityInfo.EmptyRoleSemantic
Equivalent toServletSecurity.EmptyRoleSemantic
but with an additional mode to require authentication but no role check.
-
Constructor Summary
Constructors Constructor Description SecurityInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
addRoleAllowed(java.lang.String role)
T
addRolesAllowed(java.lang.String... roles)
T
addRolesAllowed(java.util.Collection<java.lang.String> roles)
T
clone()
protected T
createInstance()
SecurityInfo.EmptyRoleSemantic
getEmptyRoleSemantic()
java.util.Set<java.lang.String>
getRolesAllowed()
TransportGuaranteeType
getTransportGuaranteeType()
T
setEmptyRoleSemantic(SecurityInfo.EmptyRoleSemantic emptyRoleSemantic)
T
setTransportGuaranteeType(TransportGuaranteeType transportGuaranteeType)
-
-
-
Method Detail
-
getEmptyRoleSemantic
public SecurityInfo.EmptyRoleSemantic getEmptyRoleSemantic()
-
setEmptyRoleSemantic
public T setEmptyRoleSemantic(SecurityInfo.EmptyRoleSemantic emptyRoleSemantic)
-
getTransportGuaranteeType
public TransportGuaranteeType getTransportGuaranteeType()
-
setTransportGuaranteeType
public T setTransportGuaranteeType(TransportGuaranteeType transportGuaranteeType)
-
addRoleAllowed
public T addRoleAllowed(java.lang.String role)
-
addRolesAllowed
public T addRolesAllowed(java.lang.String... roles)
-
addRolesAllowed
public T addRolesAllowed(java.util.Collection<java.lang.String> roles)
-
getRolesAllowed
public java.util.Set<java.lang.String> getRolesAllowed()
-
clone
public T clone()
- Overrides:
clone
in classjava.lang.Object
-
createInstance
protected T createInstance()
-
-