public class PredicateAccessControl extends AbstractIdentifiableInitializableComponent implements AccessControl
ProfileRequestContext.
To bridge the two designs, this adapter populates an AccessControlContext placed
beneath the ProfileRequestContext to carry the operation and resource parameters
and allow access to them from the Predicate.
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private com.google.common.base.Predicate<ProfileRequestContext> |
predicate
The predicate to use.
|
| Constructor and Description |
|---|
PredicateAccessControl(com.google.common.base.Predicate<ProfileRequestContext> condition)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAccess(javax.servlet.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 com.google.common.base.Predicate<ProfileRequestContext> predicate
public PredicateAccessControl(@Nonnull@ParameterName(name="condition") com.google.common.base.Predicate<ProfileRequestContext> condition)
condition - the predicate to usepublic boolean checkAccess(@Nonnull javax.servlet.ServletRequest request, @Nullable String operation, @Nullable String resource)
checkAccess in interface AccessControlCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.