Class DelegatingAccessControlService
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.utilities.java.support.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.Logger
Class logger.private final ReloadableService<AccessControlService>
The service which manages the reloading. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(String name) Get anAccessControl
instance matching a given name.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
service
The service which manages the reloading.
-
-
Constructor Details
-
DelegatingAccessControlService
public DelegatingAccessControlService(@Nonnull @ParameterName(name="acService") ReloadableService<AccessControlService> acService) Constructor.- Parameters:
acService
- the service which will manage the loading.
-
-
Method Details
-
getInstance
Get anAccessControl
instance matching a given name.In the absence of a matching instance, a default policy that denies access is returned.
- Specified by:
getInstance
in interfaceAccessControlService
- Parameters:
name
- policy name- Returns:
- the matching instance, or a default
-