Class DelegatingAccessControlService
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.shared.service.security.impl.DelegatingAccessControlService
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,UnmodifiableComponent,AccessControlService
public class DelegatingAccessControlService
extends AbstractIdentifiableInitializableComponent
implements AccessControlService
This class uses the
ReloadableService concept to implement AccessControlService
to hide the details of pinning and unpinning the underlying service.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private final ReloadableService<AccessControlService>The service which manages the reloading. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(String name) Get anAccessControlinstance matching a given name.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
service
The service which manages the reloading.
-
-
Constructor Details
-
Method Details
-
getInstance
Get anAccessControlinstance matching a given name.In the absence of a matching instance, a default policy that denies access is returned.
- Specified by:
getInstancein interfaceAccessControlService- Parameters:
name- policy name- Returns:
- the matching instance, or a default
-