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 theReloadableServiceconcept to implementAccessControlServiceto hide the details of pinning and unpinning the underlying service.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private ReloadableService<AccessControlService>serviceThe service which manages the reloading.
-
Constructor Summary
Constructors Constructor Description DelegatingAccessControlService(ReloadableService<AccessControlService> acService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlgetInstance(String name)Get anAccessControlinstance 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 Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
service
private final ReloadableService<AccessControlService> service
The service which manages the reloading.
-
-
Constructor Detail
-
DelegatingAccessControlService
public DelegatingAccessControlService(@Nonnull @ParameterName(name="acService") ReloadableService<AccessControlService> acService)
Constructor.- Parameters:
acService- the service which will manage the loading.
-
-
Method Detail
-
getInstance
@Nonnull public AccessControl getInstance(@Nonnull String name)
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
-
-