|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.security.store.ConnectParams
com.esri.adf.security.store.DBConnectParams
public class DBConnectParams
This class contains the connection parameters to connect to a Database. The ArcGISSecurityStore object will use an initiated DBConnectParams object to connect to a database.
| Field Summary | |
|---|---|
protected boolean |
bRoleInDb
|
protected boolean |
bUserInDb
|
protected boolean |
bUserPwdEncrypted
|
protected java.lang.String |
CLASSNAME
|
protected java.lang.String |
DATABASENAME
|
protected java.lang.String |
DRIVERNAME
|
protected java.lang.String |
HOSTNAME
|
protected int |
iPortNum
|
protected java.lang.String |
IS_USER_PWD_ENCRYPTED
|
protected java.lang.String |
PORTNUM
|
protected java.lang.String |
ROLE_IN_DB
|
protected java.lang.String |
strDatabaseName
|
protected java.lang.String |
strDBDriverName
|
protected java.lang.String |
strHostName
|
protected java.lang.String |
strJdbcUrl
|
protected java.lang.String |
strUserName
|
protected java.lang.String |
strUserPwd
|
protected java.lang.String |
TYPE_NAME
|
protected java.lang.String |
URL
|
protected java.lang.String |
USER_IN_DB
|
protected java.lang.String |
USERNAME
|
protected java.lang.String |
USERPWD
|
| Fields inherited from class com.esri.adf.security.store.ConnectParams |
|---|
type |
| Constructor Summary | |
|---|---|
DBConnectParams()
Class constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDatabaseName()
Returns the name of the database that the security store will connect. |
java.lang.String |
getDriverName()
Returns the name of the JDBC driver that has been set on the object. |
java.lang.String |
getHostName()
Returns that name of the host that has been set on the object. |
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Returns the parameters set on the object into a HashMap |
int |
getPortNumber()
Returns the port number that has been set on the object. |
java.lang.String |
getPreparedURL()
Returns the JDBC URL that is automatically generated for all the parameters that have been set on the object. |
java.lang.String |
getType()
Returns a string identifier for the class that implements this method. |
java.lang.String |
getURL()
Returns the JDBC URL that bas been set on the object. |
java.lang.String |
getUserName()
Returns the name of the user that is going to be used to connect to the DB. |
java.lang.String |
getUserPwd()
Returns the password for the user that the security store, will use to connect to the database. |
boolean |
isRoleInDb()
Returns boolean true if role information is maintained in DB. |
boolean |
isUserInDb()
Returns boolean true if user information is maintained in DB. |
boolean |
isUserPwdEncrypted()
Returns true if the user password is to be treated as an encrypted string. |
void |
setDatabaseName(java.lang.String databaseName)
Sets the name of the database to which the security API will talk to. |
void |
setDriverName(java.lang.String driverName)
Sets the name of the JDBC driver. |
void |
setHostName(java.lang.String hostName)
Set the name of the host that runs the DBMS. |
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> paramsMap)
Populates the parameters from the HashMap |
void |
setPortNumber(int portNumber)
Sets the port number for the machine that runs the DBMS. |
void |
setRoleInDb(boolean isRoleInDB)
If role information is maintained in a database, this method should be called with boolean true. |
void |
setURL(java.lang.String jdbcURL)
Set the JDBC URL into the object. |
void |
setUserInDb(boolean isUserInDB)
If user information is maintained in a database, this method should be called with boolean true. |
void |
setUserName(java.lang.String userName)
Sets the user credential for connecting to the DBMS. |
void |
setUserPwd(java.lang.String userPwd)
Sets the password for the user that the security store, will use to connect to the database. |
void |
setUserPwdEncrypted(boolean pwdEncrypted)
Sets the condition whether that user password is encrypted. |
boolean |
verifyParameters()
Verifies if all the required parameters for the DBConnectParams are set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String strHostName
protected int iPortNum
protected java.lang.String strUserName
protected java.lang.String strUserPwd
protected java.lang.String strDBDriverName
protected java.lang.String strDatabaseName
protected java.lang.String strJdbcUrl
protected boolean bUserInDb
protected boolean bRoleInDb
protected boolean bUserPwdEncrypted
protected final java.lang.String TYPE_NAME
protected final java.lang.String CLASSNAME
protected final java.lang.String HOSTNAME
protected final java.lang.String PORTNUM
protected final java.lang.String USERNAME
protected final java.lang.String USERPWD
protected final java.lang.String DRIVERNAME
protected final java.lang.String DATABASENAME
protected final java.lang.String URL
protected final java.lang.String USER_IN_DB
protected final java.lang.String ROLE_IN_DB
protected final java.lang.String IS_USER_PWD_ENCRYPTED
| Constructor Detail |
|---|
public DBConnectParams()
| Method Detail |
|---|
public java.lang.String getType()
getType in class ConnectParams
public void setParameters(java.util.Map<java.lang.String,java.lang.String> paramsMap)
throws ArcGISSecurityException
setParameters in class ConnectParamsparamsMap - - HashMap that contains the names of the parameter
and their values
ArcGISSecurityException - - if the required parameters are not set
public java.util.Map<java.lang.String,java.lang.String> getParameters()
throws ArcGISSecurityException
getParameters in class ConnectParamsArcGISSecurityException - - if the required parameters are not setpublic boolean isUserPwdEncrypted()
public void setUserPwdEncrypted(boolean pwdEncrypted)
pwdEncrypted - - true if the user password is encryted, false
otherwise
public void setDriverName(java.lang.String driverName)
throws ArcGISSecurityException
ArcGISSecurityException - - if the input parameter is nullpublic java.lang.String getDriverName()
public void setHostName(java.lang.String hostName)
throws ArcGISSecurityException
hostName - - name of the host
ArcGISSecurityException - - if input parameter is nullpublic void setUserInDb(boolean isUserInDB)
isUserInDB - - true if users are stored in DB, false otherwisepublic void setRoleInDb(boolean isRoleInDB)
isRoleInDB - - true if roles are stored in DB, false otherwisepublic boolean isUserInDb()
public boolean isRoleInDb()
public java.lang.String getHostName()
public void setPortNumber(int portNumber)
portNumber - - port number of the host machine that listens for DB connectionspublic int getPortNumber()
public void setUserName(java.lang.String userName)
throws ArcGISSecurityException
userName - - name of a user that can be used to connect to Database
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getUserName()
public void setDatabaseName(java.lang.String databaseName)
throws ArcGISSecurityException
databaseName - - name of the database that the security store
will connect to
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getDatabaseName()
public void setUserPwd(java.lang.String userPwd)
throws ArcGISSecurityException
userPwd - - password for the user account for the database
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getUserPwd()
public java.lang.String getPreparedURL()
throws ArcGISSecurityException
ArcGISSecurityException - - if the URL mapping file is missing or
if the particular DBMS information is
not available with the security API.
public void setURL(java.lang.String jdbcURL)
throws ArcGISSecurityException
jdbcURL - - jdbc url that the DBConnectParams object will use
ArcGISSecurityException - - if the input parameters are nullpublic java.lang.String getURL()
public boolean verifyParameters()
throws ArcGISSecurityException
verifyParameters in class ConnectParamsArcGISSecurityException - when a required parameters is not set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||