org.abstracthorizon.danube.auth
Class SpringAuthConfiguration

java.lang.Object
  extended by javax.security.auth.login.Configuration
      extended by org.abstracthorizon.danube.auth.SpringAuthConfiguration

public class SpringAuthConfiguration
extends Configuration

Authorisation configuiration that can be defined through spring configuration (or in that matter any other programmable way.

Author:
Daniel Sendula

Field Summary
protected  Map<String,AppConfigurationEntry[]> entries
          Login modules mapped to configuration entries
 
Constructor Summary
SpringAuthConfiguration()
          Constructor
 
Method Summary
 AppConfigurationEntry[] getAppConfigurationEntry(String loginContext)
           
 void init()
          Establishes itself as a authorisation configuration
 void refresh()
          Does nothing
 void removeAppConfigurationEntry(String loginContext)
          Removes login context
 void setAppConfigurationEntry(String loginContext, AppConfigurationEntry[] entries)
          Sets array of application configuration entry at given login context
 
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entries

protected Map<String,AppConfigurationEntry[]> entries
Login modules mapped to configuration entries

Constructor Detail

SpringAuthConfiguration

public SpringAuthConfiguration()
Constructor

Method Detail

init

public void init()
Establishes itself as a authorisation configuration


getAppConfigurationEntry

public AppConfigurationEntry[] getAppConfigurationEntry(String loginContext)
Specified by:
getAppConfigurationEntry in class Configuration

setAppConfigurationEntry

public void setAppConfigurationEntry(String loginContext,
                                     AppConfigurationEntry[] entries)
Sets array of application configuration entry at given login context

Parameters:
loginContext - login context
entries - application configuraiton entries

removeAppConfigurationEntry

public void removeAppConfigurationEntry(String loginContext)
Removes login context

Parameters:
loginContext - login context

refresh

public void refresh()
Does nothing

Specified by:
refresh in class Configuration


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.