|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.jassi.access.DefaultAccessClient
The DefaultAccessClient class provides a default authorization client for the JaSSI when none is provided. It returns valid authorizations for all authorization requests.
Field Summary | |
protected String |
autho
String data type containing the user's input authorization. |
protected int |
authorizationStatus
The user's authorizationStatus; |
protected boolean |
authorized
boolean data type indicating whether this user has been authorized. |
protected Vector |
authorizedDbs
the list of authorized dbs from the access server. |
protected int |
errorCode
The error code for authorization failure. |
protected String |
errorMessage
The error message for authorization failure. |
protected boolean |
initted
|
protected String |
IP
String data type containing the user's ip. |
protected Log |
log
The user's log object. |
protected String |
password
String data type containing the user's input password. |
protected UserStateObject |
user
User object; |
Constructor Summary | |
DefaultAccessClient()
Constructs a DefaultAccessClient object. |
Method Summary | |
String |
autho()
Returns a String containing the authorization associated with the user. |
boolean |
authorizeByDNS(String IPAddress)
Saves the input IP address and always returns true. |
boolean |
authorizeByIP(String IPAddress)
Saves the input IP Address authorization and always returns true. |
boolean |
authorizeByName(String autho,
String password)
Saves the input autho/password Authorization and always returns true. |
boolean |
authorizedByDNS()
Returns a boolean indicating whether the user is authorized by DNS address which is always true. |
boolean |
authorizedByIP()
Returns a boolean indicating whether the user is authorized by IP address which is always true. |
boolean |
authorizedByName()
Returns a boolean indicating whether the user is authorized by Name which is always true. |
int |
authorizeErrorCode()
Returns an int containing the 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. |
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 which is always true. |
void |
delete(String resourceName,
Object resourceObject)
Deletes the resource name from the user's profile data where no action is taken here. |
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 where null is always returned. |
Object |
getDbList()
Returns a Vector object containing Strings for all available database names defined in the JaSSI system. |
Object |
getMetaData()
Gets the MetaData object which describes the available profile data. |
String |
getRemoteAutho(String resourceName)
Retrieves the remote service authorization for the input resourceName which is always null. |
String |
getRemotePassword(String resourceName)
Retrieves the remote service password for the input resourceName which is always null. |
void |
initialize(Object serverObj,
Object user)
Initialzes the SiteSearch Access Client for the JaSSI using the data found in the input server object for the input UserStateObject. |
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 where no action is taken. |
void |
setAuthoPassword(String authorization,
String password)
Sets the authorization/password associated with the user to the input autho and password. |
void |
setDbList(Object dbs)
Sets up the Vector of database names using the list of database names input. |
void |
setLog(Log log)
Sets the log that logging will write to. |
String |
toString()
Generates a String representation of the Object. |
Object |
user()
Returns a UserStateObject containing user information which has been associated with the AccessClient object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected boolean initted
protected boolean authorized
protected int authorizationStatus
protected String autho
protected String password
protected String IP
protected int errorCode
protected String errorMessage
protected Log log
protected UserStateObject user
protected Vector authorizedDbs
Constructor Detail |
public DefaultAccessClient()
Method Detail |
public void initialize(Object serverObj, Object user)
serverObj
- the application's Access Server Information ObjectuserObj
- a user context objectpublic void setLog(Log log)
log
- the log to write topublic boolean authorizeByName(String autho, String password)
autho
- the user's authorizationpassword
- the user's passwordpublic boolean authorizeByIP(String IPAddress)
IPAddress
- the input IPpublic boolean authorizeByDNS(String IPAddress)
IPAddress
- for the user.public Object getMetaData()
public Object getDbList()
public void setDbList(Object dbs)
dbs
- the Object containing a dblist.public String getRemoteAutho(String resourceName)
resourceName
- the name of the serverpublic String getRemotePassword(String resourceName)
resourceName
- the name of the serverpublic boolean dbAccessAllowed(String dbname)
dbname
- the name of the databasepublic 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 int authorizeErrorCode()
public String authorizeErrorMessage()
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 user()
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.public 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.public 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.public void close()
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 |