public class Policy extends Object implements ContextPolicy
ACTIVE_REALM, NO_AUTH_POLICY
Constructor and Description |
---|
Policy(String contextPath,
String realm,
Collection<String> authenticationMethods,
Collection<ContextAttributeMapping> attributeMappings) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllowedAttributeNames()
Returns a
Collection of attribute names. |
CollectionPermission |
getAllowedAttributePermissions()
Returns a
CollectionPermission object built from the attribute
mappings. |
Collection<ContextAttributeMapping> |
getAllowedAttributes()
Returns a
Collection of attributes |
Collection<String> |
getAuthenticationMethods()
Returns a
Collection of authentication methods |
String |
getContextPath()
Returns the context path that this policy covers.
|
String |
getRealm()
Returns the realm that this policy utilizes.
|
String |
toString() |
public Policy(String contextPath, String realm, Collection<String> authenticationMethods, Collection<ContextAttributeMapping> attributeMappings)
public String getContextPath()
ContextPolicy
getContextPath
in interface ContextPolicy
public String getRealm()
ContextPolicy
getRealm
in interface ContextPolicy
public Collection<String> getAuthenticationMethods()
ContextPolicy
Collection
of authentication methodsgetAuthenticationMethods
in interface ContextPolicy
public CollectionPermission getAllowedAttributePermissions()
ContextPolicy
CollectionPermission
object built from the attribute
mappings.getAllowedAttributePermissions
in interface ContextPolicy
public Collection<String> getAllowedAttributeNames()
ContextPolicy
Collection
of attribute names.getAllowedAttributeNames
in interface ContextPolicy
public Collection<ContextAttributeMapping> getAllowedAttributes()
ContextPolicy
Collection
of attributesgetAllowedAttributes
in interface ContextPolicy
This work is licensed under a Creative Commons Attribution 4.0 International License.