public class RequireAnyAttributeAuthorizer<U extends CommonProfile> extends AbstractRequireAnyAuthorizer<java.lang.String,U>
RequireAnyAttributeAuthorizer which checks profile
attributes for the specified element, and optionally
may pattern-check the configured value. In practice, you may
use this authorizer to see if the profile contains attribute X
and optionally, whether X has a value that matches pattern Y.elements| Constructor and Description |
|---|
RequireAnyAttributeAuthorizer() |
RequireAnyAttributeAuthorizer(java.lang.String valueToMatch) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(WebContext context,
U profile,
java.lang.String element)
Check a specific element.
|
static <U extends CommonProfile> |
requireAnyAttribute(java.lang.String valueToMatch) |
isProfileAuthorizedgetElements, isAuthorized, setElements, setElements, setElementshandleError, isAllAuthorized, isAnyAuthorizedpublic RequireAnyAttributeAuthorizer()
public RequireAnyAttributeAuthorizer(java.lang.String valueToMatch)
protected boolean check(WebContext context, U profile, java.lang.String element)
AbstractRequireElementAuthorizercheck in class AbstractRequireElementAuthorizer<java.lang.String,U extends CommonProfile>context - the web contextprofile - the profileelement - the element to checkpublic static <U extends CommonProfile> RequireAnyAttributeAuthorizer<U> requireAnyAttribute(java.lang.String valueToMatch)
Copyright © 2019. All Rights Reserved.