com.esri.aims.mtier.auth
Class Authenticate

java.lang.Object
  |
  +--com.esri.aims.mtier.auth.Authenticate

public class Authenticate
extends Object

Restricts access to services so that only users with proper credentials can access them. This process is called Authentication. On initialization, this object reads the Authenticate.properties file. If the authenticate property is set to true, all requests have to be associated with a username & password. The username & password will be validated with the ACL which can be file based or JDBC based.


Constructor Summary
Authenticate()
          Constructs an instance of this object.
 
Method Summary
 boolean Authenticate(String user, String password, String service, String xml)
          Authenticates the service against the given username and password.
 String getRoles()
          Returns the roles
 boolean isAuthenticateAble()
          Determines if authentication is set.
 String outFilter(String xml, String service)
          Filters the response based on ACL attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authenticate

public Authenticate()
Constructs an instance of this object.

Method Detail

Authenticate

public boolean Authenticate(String user,
                            String password,
                            String service,
                            String xml)
Authenticates the service against the given username and password.

Parameters:
user - the username
password - the password
service - the requested service name
xml - the ArcXML request

outFilter

public String outFilter(String xml,
                        String service)
Filters the response based on ACL attributes.

Parameters:
service - the requested service name
xml - the ArcXML response

isAuthenticateAble

public boolean isAuthenticateAble()
Determines if authentication is set.

This method reads the Authenticate.properties file, and determines if the property authenticate is true or false .


getRoles

public String getRoles()
Returns the roles