org.deegree.services.controller.security
Class SecurityConfiguration

java.lang.Object
  extended by org.deegree.commons.config.AbstractBasicResourceManager
      extended by org.deegree.services.controller.security.SecurityConfiguration
All Implemented Interfaces:
ResourceManager

public class SecurityConfiguration
extends AbstractBasicResourceManager
implements ResourceManager

Version:
$Revision: 30337 $, $Date: 2011-04-04 14:21:18 +0200 (Mon, 04 Apr 2011) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.commons.config.AbstractBasicResourceManager
dir, idToState, workspace
 
Constructor Summary
SecurityConfiguration()
           
 
Method Summary
 ResourceState activate(String id)
          Activates the resource with the given identifier.
 boolean checkCredentials(Credentials creds)
           
 ResourceState deactivate(String id)
          Deactivates the resource with the given identifier.
 CredentialsProvider getCredentialsProvider()
           
 Class<? extends ResourceManager>[] getDependencies()
           
 ResourceManagerMetadata getMetadata()
           
protected  ResourceProvider getProvider(File file)
           
protected  void remove(String id)
           
 void shutdown()
          Is called upon workspace shutdown.
 void startup(DeegreeWorkspace workspace)
          Is called upon workspace startup.
 boolean verifyAddress(Credentials creds, String address)
           
 
Methods inherited from class org.deegree.commons.config.AbstractBasicResourceManager
createResource, deleteResource, getState, getStates, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.commons.config.ResourceManager
createResource, deleteResource, getState, getStates
 

Constructor Detail

SecurityConfiguration

public SecurityConfiguration()
Method Detail

startup

public void startup(DeegreeWorkspace workspace)
Description copied from interface: ResourceManager
Is called upon workspace startup.

Specified by:
startup in interface ResourceManager

getCredentialsProvider

public CredentialsProvider getCredentialsProvider()
Returns:
the credentials provider or null, if none was defined

checkCredentials

public boolean checkCredentials(Credentials creds)
Parameters:
creds -
Returns:
true, if an authentication authority does

verifyAddress

public boolean verifyAddress(Credentials creds,
                             String address)
Parameters:
creds -
address -
Returns:
true, if an authentication authority does

getDependencies

public Class<? extends ResourceManager>[] getDependencies()
Specified by:
getDependencies in interface ResourceManager
Returns:
an empty array if there are no dependencies

shutdown

public void shutdown()
Description copied from interface: ResourceManager
Is called upon workspace shutdown.

Specified by:
shutdown in interface ResourceManager

getMetadata

public ResourceManagerMetadata getMetadata()
Specified by:
getMetadata in interface ResourceManager
Returns:
a metadata object, may be null

activate

public ResourceState activate(String id)
Description copied from interface: ResourceManager
Activates the resource with the given identifier.

Specified by:
activate in interface ResourceManager
Parameters:
id - resource identifier, must not be null
Returns:
resource state after activation (may be unsuccessful), but never null

deactivate

public ResourceState deactivate(String id)
Description copied from interface: ResourceManager
Deactivates the resource with the given identifier.

Specified by:
deactivate in interface ResourceManager
Parameters:
id - resource identifier, must not be null
Returns:
resource state after deactivation (may be unsuccessful), but never null

getProvider

protected ResourceProvider getProvider(File file)
Specified by:
getProvider in class AbstractBasicResourceManager

remove

protected void remove(String id)
Specified by:
remove in class AbstractBasicResourceManager


Copyright © 2011. All Rights Reserved.