public class LDAPIsMember extends LDAPBasePropertySupport implements java.io.Serializable
OK INVALID_PARAMETER CONNECT_ERROR AUTHENTICATION_ERROR PROPERTY_NOT_FOUND AMBIGUOUS_RESULTS NO_SUCH_OBJECT
Modifier and Type | Field and Description |
---|---|
static int |
AMBIGUOUS_RESULTS |
static int |
AUTHENTICATION_ERROR |
static int |
CONNECT_ERROR |
static int |
INVALID_PARAMETER |
static int |
NO_SUCH_OBJECT |
static int |
OK |
static int |
PROPERTY_NOT_FOUND |
Constructor and Description |
---|
LDAPIsMember()
Constructor with no parameters
|
LDAPIsMember(java.lang.String host,
int port,
java.lang.String group)
Constructor with host, port, and group DN initializers
|
LDAPIsMember(java.lang.String host,
int port,
java.lang.String dn,
java.lang.String password,
java.lang.String theGroup)
Constructor with host, port, authentication DN and password
and group DN initializers
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroup()
Returns the distinguished name of the group
|
java.lang.String |
getMember()
Returns the distinguished name of the member
|
boolean |
isMember()
Checks if an entity (specified by distinguished name) is a
member of a particular group (specified by distinguished name)
|
void |
isMember(java.awt.event.ActionEvent e)
Checks if an entity (specified by distinguished name) is a
member of a particular group (specified by distinguished name)
|
boolean |
isMember(java.lang.String host,
int port,
java.lang.String dn,
java.lang.String password,
java.lang.String group,
java.lang.String member)
Checks if an entity (specified by distinguished name) is a
member of a particular group (specified by distinguished name)
|
static void |
main(java.lang.String[] args)
The main body if we run it as application instead of applet.
|
void |
setGroup(java.lang.String group)
Sets the distinguished name of the group
|
void |
setMember(java.lang.String member)
Sets the distinguished name of the member
|
addPropertyChangeListener, connect, convertToString, firePropertyChange, getAuthDN, getAuthPassword, getBase, getDebug, getErrorCode, getFilter, getHost, getPort, getScope, getUserID, getUserName, printDebug, removePropertyChangeListener, setAuthDN, setAuthPassword, setBase, setDebug, setDefaultReferralCredentials, setErrorCode, setFilter, setHost, setPort, setScope, setUserID, setUserName
public static final int OK
public static final int INVALID_PARAMETER
public static final int CONNECT_ERROR
public static final int AUTHENTICATION_ERROR
public static final int PROPERTY_NOT_FOUND
public static final int AMBIGUOUS_RESULTS
public static final int NO_SUCH_OBJECT
public LDAPIsMember()
public LDAPIsMember(java.lang.String host, int port, java.lang.String group)
host
- host stringport
- port numbergroup
- distinguished name of the grouppublic LDAPIsMember(java.lang.String host, int port, java.lang.String dn, java.lang.String password, java.lang.String theGroup)
host
- host stringport
- port numberdn
- fully qualified distinguished name to authenticatepassword
- password for authenticating the dntheGroup
- distinguished name of the grouppublic boolean isMember()
public boolean isMember(java.lang.String host, int port, java.lang.String dn, java.lang.String password, java.lang.String group, java.lang.String member)
host
- host stringport
- port numberdn
- fully qualified distinguished name to authenticate;
can be null or ""password
- password for authenticating the dn; can be null
or ""group
- distinguished name of the groupmember
- distinguished name of member to be checkedpublic void isMember(java.awt.event.ActionEvent e)
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
group
- group namepublic java.lang.String getMember()
public void setMember(java.lang.String member)
member
- member namepublic static void main(java.lang.String[] args)
args
- list of arguments