|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.security.nmas.mgmt.NMASPwdMgr
Provides a simple set of controls to access (set, get and delete) the NMAS password.
Constructor Summary | |
NMASPwdMgr(javax.naming.ldap.LdapContext ldapCtx)
Instantiates the NMASPwdMgr constructor. |
|
NMASPwdMgr(com.novell.security.nmas.mgmt.PwdTransport pwdTransport)
Specifies the NMASPwdMgr constructor. |
Method Summary | |
void |
changePwd(java.lang.String tName,
java.lang.String objectDN,
java.lang.String oldPwd,
java.lang.String newPwd)
Changes the password for the specified object. |
void |
deletePwd(java.lang.String tName,
java.lang.String objectDN)
Deletes the password for the specified object. |
java.lang.String |
getPwd(java.lang.String tName,
java.lang.String objectDN)
Reads the password from the given object. |
java.lang.String |
getPwdPolicyDN(java.lang.String sTreeName,
java.lang.String sUserDN)
Gets the DN of the spwd Policy assigned to this user object. |
java.lang.String |
getPwdPolicyDNX500(java.lang.String sUserDN)
Gets the x500 form of the DN of the spwd Policy assigned to this user object. |
com.novell.security.nmas.mgmt.NMASPwdStatus |
getPwdStatus(java.lang.String tName,
java.lang.String objectDN)
Returns an object containing the password status. |
int |
pwdPolicyCheck(java.lang.String tName,
java.lang.String objectDN,
java.lang.String pwd)
Verifies the valid password for the current policy. |
void |
setPwd(java.lang.String tName,
java.lang.String objectDN,
java.lang.String data)
Sets the password of the specified object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NMASPwdMgr(javax.naming.ldap.LdapContext ldapCtx)
ldapCtx
- An LdapContext object that has been initialized and authenticated by the caller.public NMASPwdMgr(com.novell.security.nmas.mgmt.PwdTransport pwdTransport)
pwdTransport
- A PwdTransport object initialized with the appropriate connection.Method Detail |
public void setPwd(java.lang.String tName, java.lang.String objectDN, java.lang.String data) throws NMASPwdException
tName
- The eDirectory tree name.objectDN
- The distinguished name of the object to write password data to.data
- A string containing the password to be written.
NMASPwdException
- NMASPwdException contains the NMAS error code.public java.lang.String getPwd(java.lang.String tName, java.lang.String objectDN) throws NMASPwdException
tName
- The eDirectory tree name.objectDN
- The distinguished name of the object to write password data to.
NMASPwdException
- contains the NMAS error code.public void deletePwd(java.lang.String tName, java.lang.String objectDN) throws NMASPwdException
tName
- The eDirectory tree name.objectDN
- The distinguished name of the object to write password data to.
NMASPwdException
- contains the NMAS error code.public void changePwd(java.lang.String tName, java.lang.String objectDN, java.lang.String oldPwd, java.lang.String newPwd) throws NMASPwdException
tName
- The eDirectory tree name.objectDN
- The distinguished name of the object on which to change the password.oldPwd
- A string containing the old password.newPwd
- A string containing the new password.
NMASPwdException
- contains the NMAS error code.public int pwdPolicyCheck(java.lang.String tName, java.lang.String objectDN, java.lang.String pwd) throws NMASPwdException
pwd
- The password to be checked for policy compliance.tName
- The eDirectory tree name.objectDN
- The distinguished name of the object on which to write password data.
NMASPwdException
- contains the NMAS error code.public java.lang.String getPwdPolicyDN(java.lang.String sTreeName, java.lang.String sUserDN) throws NMASPwdException
sTreeName
- The eDirectory tree name.sUserDN
- The distinguished name of the user object.
NMASPwdException
- contains the NMAS error code.public java.lang.String getPwdPolicyDNX500(java.lang.String sUserDN) throws NMASPwdException
sUserDN
- The distinguished name of the user object.
NMASPwdException
- contains the NMAS error code.public com.novell.security.nmas.mgmt.NMASPwdStatus getPwdStatus(java.lang.String tName, java.lang.String objectDN) throws NMASPwdException
tName
- The eDirectory tree name.objectDN
- The distinguished name of the object in which to write password data.
NMASPwdException
- contains the NMAS error code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |