|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--oracle.ldap.util.User
| Field Summary | |
static int |
CREDTYPE_PASSWD
Using userpassword to authenticate |
static int |
EXTPROPTYPE_RESOURCE_ACCESS_DESCRIPTOR
Extended Preference Type to be used with getExtendedProperties() - Resource Access Descriptor |
| Constructor Summary | |
User(javax.naming.directory.DirContext ctx,
int inUserIdType,
java.lang.String inUserIdName,
int inSubIdType,
java.lang.String inSubIdName,
boolean validate)
Constructs a User |
|
User(javax.naming.directory.DirContext ctx,
int inUserIdType,
java.lang.String inUserIdName,
Subscriber inSubscriber,
boolean validate)
Constructs a User |
|
| Method Summary | |
void |
authenticateUser(javax.naming.directory.DirContext ctx,
int authType,
java.lang.Object cred)
Authenticate User using the appropriate credentials |
java.lang.String |
getDn(javax.naming.directory.DirContext ctx)
Return the DN of this user. |
PropertySetCollection |
getExtendedProperties(javax.naming.directory.DirContext ctx,
int propType,
java.lang.String[] attrList)
Returns a property set collection of all the extended properties of this user based on the property type specified. |
PropertySetCollection |
getExtendedProperties(javax.naming.directory.DirContext ctx,
int propType,
java.lang.String[] attrList,
java.lang.String filter)
Returns a property set collection of the extended properties of this user based on the property type specified |
PropertySetCollection |
getProperties(javax.naming.directory.DirContext ctx,
java.lang.String[] attrList)
Retrieves selected attributes associated with this user. |
java.lang.String |
locateSubscriber(javax.naming.directory.DirContext ctx)
Locate the subscriber this user belongs to |
void |
resolve(javax.naming.directory.DirContext ctx)
Validates the user by identifying its DN |
void |
setProperties(javax.naming.directory.DirContext ctx,
javax.naming.directory.ModificationItem[] mods)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int CREDTYPE_PASSWD
public static int EXTPROPTYPE_RESOURCE_ACCESS_DESCRIPTOR
| Constructor Detail |
public User(javax.naming.directory.DirContext ctx,
int inUserIdType,
java.lang.String inUserIdName,
Subscriber inSubscriber,
boolean validate)
throws UtilException
ctx - A valid DirContextinUserIdType - The type of user id being used - use
one of Util.IDTYPE_DN, Util.IDTYPE_SIMPLE
or Util.IDTYPE_GUIDinUserIdName - User IDinSubscriber - A valid Subscriber objectvalidate - Set to true to validate the user
by the constructorUtilException -
public User(javax.naming.directory.DirContext ctx,
int inUserIdType,
java.lang.String inUserIdName,
int inSubIdType,
java.lang.String inSubIdName,
boolean validate)
throws UtilException
ctx - A valid DirContextinUserIdType - The type of user id being used - use
one of Util.IDTYPE_DN, Util.IDTYPE_SIMPLE
or Util.IDTYPE_GUIDinUserIdName - User IDinSubIdType - The type of subscriber id being used -
use one of Util.IDTYPE_DN, Util.IDTYPE_SIMPLE
or Util.IDTYPE_GUIDinSubIdName - Subscriber IDvalidate - Set to true to validate the user
by the constructorUtilException - | Method Detail |
public PropertySetCollection getExtendedProperties(javax.naming.directory.DirContext ctx,
int propType,
java.lang.String[] attrList,
java.lang.String filter)
throws UtilException
ctx - a valid DirContextproptype - currently only supporting
EXTPROPTYPE_RESOURCE_ACCESS_DESCRIPTORattrList - a String array of attributes to be retrieved;
null indicates that all attributes should be
retrieved; an empty array indicates that
none should be retrievedfilter - a search filter to identify an particular
applications whose properties is to be retrieved
public PropertySetCollection getExtendedProperties(javax.naming.directory.DirContext ctx,
int propType,
java.lang.String[] attrList)
throws UtilException
ctx - a valid DirContextproptype - currently only supporting EXTPROPTYPE_RESOURCE_ACCESS_DESCRIPTORattrList - a String array of attributes to be retrieved;
null indicates that all attributes should be
retrieved; an empty array indicates that
none should be retrieved
public PropertySetCollection getProperties(javax.naming.directory.DirContext ctx,
java.lang.String[] attrList)
throws UtilException
ctx - A valid DirContextattrList - An array of attributes to be retrieved.
null indicates that all attributes should be retrieved.
An empty array indicates that none should be retrieved.UtilException -
public void setProperties(javax.naming.directory.DirContext ctx,
javax.naming.directory.ModificationItem[] mods)
throws UtilException
public void resolve(javax.naming.directory.DirContext ctx)
throws UtilException
ctx - A valid DirContextUtilException -
public java.lang.String getDn(javax.naming.directory.DirContext ctx)
throws UtilException
UtilException -
public java.lang.String locateSubscriber(javax.naming.directory.DirContext ctx)
throws UtilException
UtilException -
public void authenticateUser(javax.naming.directory.DirContext ctx,
int authType,
java.lang.Object cred)
throws UtilException
ctx - a valid DirContextauthType - User.CREDTYPE_PASSWD is the only one
supported
at the momentcred - the credentials based on the authTypeUtilException -
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||