|
|||||||||
| 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.ADConnectParams
public class ADConnectParams
This class contains the connection parameters to connect to an LDAP. The ArcGISSecurityStore object will use an initiated LDAPConnectParams object to connect to the LDAP.
| Field Summary | |
|---|---|
protected java.lang.String |
BASEDN_FOR_ROLE
|
protected java.lang.String |
BASEDN_FOR_USER
|
protected boolean |
bRoleInAd
|
protected boolean |
bUserInAd
|
protected boolean |
bUserPwdEncrypted
|
protected java.lang.String |
CLASSNAME
|
protected java.lang.String |
HOSTNAME
|
protected int |
iPortNum
|
protected int |
iRoleType
|
protected java.lang.String |
IS_USER_PWD_ENCRYPTED
|
protected java.lang.String |
PORTNUM
|
static int |
ROLE_AS_ATTRIBUTE
|
static int |
ROLE_AS_ENTRY
|
protected java.lang.String |
ROLE_ATTRB_IN_USER_ENTRY
|
protected java.lang.String |
ROLE_IN_AD
|
protected java.lang.String |
ROLE_TYPE
|
protected java.lang.String |
strBaseDnForRole
|
protected java.lang.String |
strBaseDnForUser
|
protected java.lang.String |
strHostName
|
protected java.lang.String |
strLdapURLForRole
|
protected java.lang.String |
strLdapURLForUser
|
protected java.lang.String |
strRoleAttribInUserEntry
|
protected java.lang.String |
strUserAttribInRoleEntry
|
protected java.lang.String |
strUserIdAttribute
|
protected java.lang.String |
strUserName
|
protected java.lang.String |
strUserPwd
|
protected java.lang.String |
TYPE_NAME
|
protected java.lang.String |
URL_FOR_ROLE
|
protected java.lang.String |
URL_FOR_USER
|
protected java.lang.String |
USER_ATTRB_IN_ROLE_ENTRY
|
protected java.lang.String |
USER_ID_ATTRB
|
protected java.lang.String |
USER_IN_AD
|
protected java.lang.String |
USERNAME
|
protected java.lang.String |
USERPWD
|
| Fields inherited from class com.esri.adf.security.store.ConnectParams |
|---|
type |
| Constructor Summary | |
|---|---|
ADConnectParams()
Class constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseDnForRole()
Returns the base DN from which the roles will be searched |
java.lang.String |
getBaseDnForUser()
Returns the base DN from which the users will be searched |
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 |
getPreparedURLForRole()
Returns a JNDI URL to connect to an AD. |
java.lang.String |
getPreparedURLForUser()
Returns a JNDI URL to connect to an AD. |
java.lang.String |
getRoleAttribInUserEntry()
Returns the name of the attribute in the User entry that will contain the DN of the role to which the ArcGISSecurityUser belongs. |
int |
getRoleType()
Returns the type in which role information is stored in the AD. |
java.lang.String |
getType()
Returns a string identifier for the class that implements this method. |
java.lang.String |
getURLForRole()
Returns the URL to connect to the roles in AD. |
java.lang.String |
getURLForUser()
Returns the URL to connect to the roles in AD. |
java.lang.String |
getUserAttrbInRoleEntry()
Returns the name of the attribute in the Role entry that will contain the user DN who are members of that role. |
java.lang.String |
getUserIdAttribute()
Return the attribute used for ArcGISSecurityUser-id in the DN string e.g. |
java.lang.String |
getUserName()
Returns the user name for the AD account that has been set on the object |
java.lang.String |
getUserPwd()
Returns the user password for the AD account that has been set on the object |
boolean |
isRoleInAd()
Returns the boolean flag that states if the roles are maintained in the AD. |
boolean |
isUserInAd()
Returns the boolean flag that states if the users are maintained in the AD. |
boolean |
isUserPwdEncrypted()
Returns true if the user password is to be treated as an encrypted string. |
void |
setBaseDnForRole(java.lang.String baseDnForRole)
Sets the base DN for the AD from which the roles will be searched. |
void |
setBaseDnForUser(java.lang.String baseDnForUser)
Sets the base DN for the AD from which the users will be searched. |
void |
setHostName(java.lang.String hostName)
Set the name of the host that runs the AD. |
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 AD. |
void |
setRoleAttribInUserEntry(java.lang.String roleAttribInUserEntry)
Sets the name of the attribute in the User entry that will contain the DN of the role to which the user belongs. |
void |
setRoleInAd(boolean roleInAd)
Set the boolean flag to true is roles are in AD. |
void |
setRoleType(int type)
This method instructs the data store the way roles are maintained in the AD. |
void |
setURLForRole(java.lang.String ldapURL)
Set the AD URL. |
void |
setURLForUser(java.lang.String ldapURL)
Set the AD URL. |
void |
setUserAttrbInRoleEntry(java.lang.String userAttribInRoleEntry)
Sets the name of the attribute in the Role entry that will contain the user DN who are members of that role. |
void |
setUserIdAttribute(java.lang.String userIdAttribute)
Sets the attribute used for ArcGISSecurityUser-id in the DN string e.g. |
void |
setUserInAd(boolean userInAd)
Set the boolean flag to true is users are in AD. |
void |
setUserName(java.lang.String userName)
Set the user credentials for an AD account |
void |
setUserPwd(java.lang.String userPwd)
Set the user credentials for an AD account |
void |
setUserPwdEncrypted(boolean pwdEncrypted)
Sets the condition whether that user password is encrypted. |
boolean |
verifyParameters()
Verifies if all the required parameters for the LDAPConnectParams 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 strBaseDnForUser
protected java.lang.String strBaseDnForRole
protected boolean bUserInAd
protected boolean bRoleInAd
protected java.lang.String strUserIdAttribute
protected java.lang.String strLdapURLForUser
protected java.lang.String strLdapURLForRole
protected java.lang.String strUserAttribInRoleEntry
protected java.lang.String strRoleAttribInUserEntry
protected java.lang.String strUserName
protected java.lang.String strUserPwd
protected int iRoleType
protected boolean bUserPwdEncrypted
public static int ROLE_AS_ENTRY
public static int ROLE_AS_ATTRIBUTE
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 BASEDN_FOR_USER
protected final java.lang.String BASEDN_FOR_ROLE
protected final java.lang.String USER_ID_ATTRB
protected final java.lang.String URL_FOR_USER
protected final java.lang.String URL_FOR_ROLE
protected final java.lang.String ROLE_TYPE
protected final java.lang.String USER_ATTRB_IN_ROLE_ENTRY
protected final java.lang.String ROLE_ATTRB_IN_USER_ENTRY
protected final java.lang.String USER_IN_AD
protected final java.lang.String ROLE_IN_AD
protected final java.lang.String IS_USER_PWD_ENCRYPTED
| Constructor Detail |
|---|
public ADConnectParams()
| Method Detail |
|---|
public java.lang.String getType()
getType in class ConnectParamspublic boolean isUserPwdEncrypted()
public void setUserPwdEncrypted(boolean pwdEncrypted)
pwdEncrypted - - true if the user password is encryted, false
otherwise
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 set
public void setUserName(java.lang.String userName)
throws ArcGISSecurityException
userName - - String representing the name of the user
ArcGISSecurityException - - if the input parameter is nullpublic java.lang.String getUserName()
public java.lang.String getUserPwd()
public void setUserPwd(java.lang.String userPwd)
throws ArcGISSecurityException
userPwd - - String representing the password of the user
ArcGISSecurityException - - if the input parameter is null
public void setHostName(java.lang.String hostName)
throws ArcGISSecurityException
hostName - - name of the host
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getHostName()
public void setPortNumber(int portNumber)
portNumber - - port number of the host machine that listens for AD connectionspublic int getPortNumber()
public void setBaseDnForUser(java.lang.String baseDnForUser)
throws ArcGISSecurityException
baseDnForUser - - base DN for searching users
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getBaseDnForUser()
public void setRoleType(int type)
throws ArcGISSecurityException
type - - this can either be ADConnectParams.ROLE_AS_ATTRBUTE or
ADConnectParams.ROLE_AS_ENTRY
ArcGISSecurityException - - if input parameter is not of the above value
public int getRoleType()
throws ArcGISSecurityException
ArcGISSecurityException - - if setRoleType is not called before
calling this method.
public void setUserAttrbInRoleEntry(java.lang.String userAttribInRoleEntry)
throws ArcGISSecurityException
userAttribInRoleEntry - - String representing the attribute name
whose value is the DN of the user who
is a member of this role.
ArcGISSecurityException - when the input parameter is null or setRoleType method
has not been called before this method is called.
public java.lang.String getUserAttrbInRoleEntry()
throws ArcGISSecurityException
ArcGISSecurityException - when this method is called before setUserAttrbInRoleEntry
method is called.
public void setRoleAttribInUserEntry(java.lang.String roleAttribInUserEntry)
throws ArcGISSecurityException
roleAttrbInUserEntry - - String representing the attribute name
whose value is the DN of the user who
is a member of this role.
ArcGISSecurityException - when the input parameter is null or if setRoleType method
is not called before this method is called.
public java.lang.String getRoleAttribInUserEntry()
throws ArcGISSecurityException
ArcGISSecurityException - when this method is called before setRoleAttribInUserEntry
method is called.
public void setBaseDnForRole(java.lang.String baseDnForRole)
throws ArcGISSecurityException
baseDnForRoles - - base DN for searching roles
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getBaseDnForRole()
public void setUserInAd(boolean userInAd)
userInLdap - - boolean true if users are in ADpublic boolean isUserInAd()
public void setRoleInAd(boolean roleInAd)
roleInLdap - - boolean true if roles are in ADpublic boolean isRoleInAd()
public java.lang.String getPreparedURLForUser()
throws ArcGISSecurityException
ArcGISSecurityException - if conditions are not met to generate the URL
public java.lang.String getPreparedURLForRole()
throws ArcGISSecurityException
ArcGISSecurityException - if conditions are not met to generate the URL
public void setURLForUser(java.lang.String ldapURL)
throws ArcGISSecurityException
ArcGISSecurityExceptionpublic java.lang.String getURLForUser()
public void setURLForRole(java.lang.String ldapURL)
throws ArcGISSecurityException
ArcGISSecurityExceptionpublic java.lang.String getURLForRole()
public java.lang.String getUserIdAttribute()
public void setUserIdAttribute(java.lang.String userIdAttribute)
throws ArcGISSecurityException
ArcGISSecurityException - - if the input parameter is null
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 | ||||||||