public class PredicateAccessControl extends AbstractIdentifiableInitializableComponent implements AccessControl
ProfileRequestContext.| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Predicate<ProfileRequestContext> |
predicate
The predicate to use.
|
| Constructor and Description |
|---|
PredicateAccessControl(Predicate<ProfileRequestContext> condition)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAccess(ServletRequest request,
String operation,
String resource) |
private String |
getLogPrefix()
Get logging prefix.
|
setIddoInitialize, getIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId@Nonnull private final org.slf4j.Logger log
@Nonnull private final Predicate<ProfileRequestContext> predicate
public PredicateAccessControl(@Nonnull @ParameterName(name="condition") Predicate<ProfileRequestContext> condition)
condition - the predicate to usepublic boolean checkAccess(@Nonnull ServletRequest request, @Nullable String operation, @Nullable String resource)
checkAccess in interface AccessControlCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.