|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AccessClient interface defines the methods that must be implemented by all classes designed to perform access control for users in the SiteSearch system.
Field Summary | |
static int |
AUTHORIZED_BY_DNS
integer data type defining an authorization status - User unauthorized by Domain Name. |
static int |
AUTHORIZED_BY_IP
integer data type defining an authorization status - User unauthorized by IP Address. |
static int |
AUTHORIZED_BY_NAME
integer data type defining an authorization status - User unauthorized by Name. |
static int |
FAILED_AUTHORIZATION
Error code for failed authorization |
static int |
FAILED_CONNECTION
Error code for failed connection |
static int |
INVALID_DNS
integer data type defining an authorization Error Code - Unauthorized Domain Name - 102 . |
static int |
INVALID_IP
integer data type defining an authorization Error Code - Unauthorized IP - 100 . |
static int |
INVALID_NAME
integer data type defining an authorization Error Code - Unauthorized Name - 101 . |
static int |
UNAUTHORIZED
integer data type defining an authorization status - User unauthorized. |
Method Summary | |
String |
autho()
Returns a String containing the authorization associated with the user. |
boolean |
authorizeByDNS(String IPAddress)
Performs a Domain Name authorization using the input IP address string. |
boolean |
authorizeByIP(String IPAddress)
Performs an IP Address authorization using the input IP address string. |
boolean |
authorizeByName(String autho,
String password)
Performs an autho/password Authorization using the input authorization and password strings. |
boolean |
authorizedByDNS()
Returns a boolean indicating whether the user is authorized by DNS address. |
boolean |
authorizedByIP()
Returns a boolean indicating whether the user is authorized by IP address. |
boolean |
authorizedByName()
Returns a boolean indicating whether this user is authorized by Name. |
int |
authorizeErrorCode()
Returns an integer containing the error code for failed authorizations. |
String |
authorizeErrorMessage()
Returns a String containing the error message for failed authorizations. |
boolean |
authosEquals(String autho,
String password)
Compares the input autho and password to the existing autho/password to see if there is a match. |
void |
close()
Cleans up the connection to the AccessServer. |
boolean |
dbAccessAllowed(String dbname)
Returns a boolean indicating whether access to the input database is allowed. |
void |
delete(String resourceName,
Object resourceObject)
Deletes the input resource name from the user's profile data. |
Object |
get(String resourceName,
Object resourceObject)
Returns an Object containing the value for the input resource name from the user's profile data and optionally uses the resourceObject to locate the data. |
Object |
getDbList()
Returns an Object containing the database list for the user. |
Object |
getMetaData()
Returns an Object which contains MetaData which describes the available profile data. |
String |
getRemoteAutho(String resourceName)
Returns a String containing the remote service authorization for the input resource name. |
String |
getRemotePassword(String resourceName)
Returns a String containing the remote service password for the input resource name. |
void |
initialize(Object serverObj,
Object userObject)
Initializes the Access Client using the input Access server object and the input object containing user state |
String |
IP()
Returns a String containing the IP Address associated with the user. |
String |
password()
Returns a String containing the password associated with the user. |
void |
put(String resourceName,
Object value,
Object resourceObject)
Stores the input Object for the given resource name in the user's profile data. |
void |
setAuthoPassword(String authorization,
String password)
Sets the authorization/password associated with the user to the input authorization and password. |
void |
setDbList(Object dbs)
Sets the database list for the user using the input Object containing a database list. |
void |
setLog(Log log)
Sets the log for logging to the input Log object. |
String |
toString()
Generates a String representation of the Object. |
Object |
user()
Returns an Object containing user information which has been associated with the AccessClient object. |
Field Detail |
public static final int UNAUTHORIZED
public static final int AUTHORIZED_BY_IP
public static final int AUTHORIZED_BY_DNS
public static final int AUTHORIZED_BY_NAME
public static final int INVALID_IP
100
.public static final int INVALID_NAME
101
.public static final int INVALID_DNS
102
.public static final int FAILED_CONNECTION
public static final int FAILED_AUTHORIZATION
Method Detail |
public void initialize(Object serverObj, Object userObject)
serverObj
- the application's Access Server ObjectuserObj
- a user context objectpublic boolean authorizeByName(String autho, String password)
autho
- the user's authorizationpassword
- the user's passwordpublic boolean authorizeByIP(String IPAddress)
IPAddress
- the user IP Addresspublic boolean authorizeByDNS(String IPAddress)
IPAddress
- the user IP Address that can be looked up by the
domain name server.public Object getMetaData()
public Object getDbList()
public void setDbList(Object dbs)
dbs
- the Object containing a dblistpublic int authorizeErrorCode()
public String authorizeErrorMessage()
public boolean authorizedByName()
public boolean authorizedByIP()
public boolean authorizedByDNS()
public boolean authosEquals(String autho, String password)
autho
- the authorization name to comparepassword
- the password to compare.public void setAuthoPassword(String authorization, String password)
authorization
- the name used to authorize.password
- the password used to authorize.public String autho()
public String password()
public String IP()
public Object get(String resourceName, Object resourceObject)
resourceName
- the name of the data to updateresourceObject
- the name of the category or the category object itself
where the resource can be located. null can be passed in, this is here
for extensibility purposespublic void put(String resourceName, Object value, Object resourceObject)
resourceName
- the name of the data to updatevalue
- the value for the resourceNameresourceObject
- the name of the category or the category object itself
where the resource can be located. null can be passed in, this is here
for extensibility purposespublic void delete(String resourceName, Object resourceObject)
resourceName
- the name to deleteresourceObject
- the name of the category or the category object itself
where the resource can be located. null can be passed in, this is here
for extensibility purposespublic String getRemoteAutho(String resourceName)
resourceName
- the name of the resourcepublic String getRemotePassword(String resourceName)
resourceName
- the name of the resourcepublic boolean dbAccessAllowed(String dbname)
dbname
- the name of the database.public void close()
public void setLog(Log log)
log
- the log to write topublic Object user()
public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |