org.gcube.accounting.security.authn
Class FileAuthenticationManager

java.lang.Object
  extended by org.gcube.accounting.security.authn.FileAuthenticationManager
All Implemented Interfaces:
AuthenticationManager

public class FileAuthenticationManager
extends Object
implements AuthenticationManager


Constructor Summary
FileAuthenticationManager(org.apache.commons.configuration.PropertiesConfiguration file)
          Basic constructor
FileAuthenticationManager(String file)
          Basic constructor
 
Method Summary
 boolean authenticate(String username, String password)
           
 String getRealm()
           
 void setRealm(String realm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAuthenticationManager

public FileAuthenticationManager(String file)
                          throws org.apache.commons.configuration.ConfigurationException
Basic constructor

Parameters:
file - path
Throws:
org.apache.commons.configuration.ConfigurationException

FileAuthenticationManager

public FileAuthenticationManager(org.apache.commons.configuration.PropertiesConfiguration file)
Basic constructor

Parameters:
propertiesConfiguration -
Method Detail

authenticate

public boolean authenticate(String username,
                            String password)
Specified by:
authenticate in interface AuthenticationManager

getRealm

public String getRealm()
Specified by:
getRealm in interface AuthenticationManager

setRealm

public void setRealm(String realm)


Copyright © 2013. All Rights Reserved.