com.novell.security.nmas.mgmt
Class NMASChallengeResponseMgr

java.lang.Object
  |
  +--com.novell.security.nmas.mgmt.NMASChallengeResponseMgr

public final class NMASChallengeResponseMgr
extends java.lang.Object

 NMASPwdMgr provides a simple set of controls
       to access (set/get/delete) NMAS Pwd


Constructor Summary
NMASChallengeResponseMgr(javax.naming.ldap.LdapContext ldapCtx)
          CRMgr constructor
 
Method Summary
 void deleteChallengeQuestions(java.lang.String sUserDN)
          deleteChallengeQuestions() - Returns the blob of data containing the Challenge questions from the login config data on a user object
 void deleteChallengeQuestions(java.lang.String sTreeName, java.lang.String sUserDN)
           
 void deleteChallengeResponses(java.lang.String sUserDN, java.lang.String[] sChallenges)
          deleteChallengeResponses() - Delete these Challenge/Response sets from the secret data on a user object
 void deleteChallengeResponses(java.lang.String sTreeName, java.lang.String sUserDN, java.lang.String[] sChallenges)
           
 java.lang.String getChallengeQuestions(java.lang.String sUserDN)
          getChallengeQuestions() - Returns the blob of data containing the Challenge questions from the login config data on a user object
 java.lang.String getChallengeQuestions(java.lang.String sTreeName, java.lang.String sUserDN)
           
 void setChallengeQuestions(java.lang.String sUserDN, java.lang.String sXMLBlob)
          setChallengeQuestions() - Stores a blob of data containing the Challenge questions on the login config data on a user object
 void setChallengeQuestions(java.lang.String sTreeName, java.lang.String sUserDN, java.lang.String sXMLBlob)
           
 void setChallengeResponses(java.lang.String sUserDN, java.lang.String[] sChallenges, java.lang.String[] sResponses)
          setChallengeResponses() - Set set a Challenge/Response set in the secret data on a user object
 void setChallengeResponses(java.lang.String sTreeName, java.lang.String sUserDN, java.lang.String[] sChallenges, java.lang.String[] sResponses)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMASChallengeResponseMgr

public NMASChallengeResponseMgr(javax.naming.ldap.LdapContext ldapCtx)
CRMgr constructor

Parameters:
ldapCtx - An LdapContext object created and authenticated by the caller
Method Detail

setChallengeQuestions

public void setChallengeQuestions(java.lang.String sUserDN,
                                  java.lang.String sXMLBlob)
                           throws NMASChallengeResponseException
setChallengeQuestions() - Stores a blob of data containing the Challenge questions on the login config data on a user object

Parameters:
sUserDN - The distinguished name of the user object to write password data to
sXMLBlob - A XML formated String containing the challenge questions and other data
Throws:
NMASChallengeResponseException - contains the nmas error code

setChallengeQuestions

public void setChallengeQuestions(java.lang.String sTreeName,
                                  java.lang.String sUserDN,
                                  java.lang.String sXMLBlob)
                           throws NMASChallengeResponseException
NMASChallengeResponseException

getChallengeQuestions

public java.lang.String getChallengeQuestions(java.lang.String sUserDN)
                                       throws NMASChallengeResponseException
getChallengeQuestions() - Returns the blob of data containing the Challenge questions from the login config data on a user object

Parameters:
sUserDN - The distinguished name of the user object to write password data to
Returns:
String An XML formated String containing the challenge questions and other data
Throws:
NMASChallengeResponseException - contains the nmas error code

getChallengeQuestions

public java.lang.String getChallengeQuestions(java.lang.String sTreeName,
                                              java.lang.String sUserDN)
                                       throws NMASChallengeResponseException
NMASChallengeResponseException

deleteChallengeQuestions

public void deleteChallengeQuestions(java.lang.String sUserDN)
                              throws NMASChallengeResponseException
deleteChallengeQuestions() - Returns the blob of data containing the Challenge questions from the login config data on a user object

Parameters:
sUserDN - The distinguished name of the user object to write password data to
Throws:
NMASChallengeResponseException - contains the nmas error code

deleteChallengeQuestions

public void deleteChallengeQuestions(java.lang.String sTreeName,
                                     java.lang.String sUserDN)
                              throws NMASChallengeResponseException
NMASChallengeResponseException

setChallengeResponses

public void setChallengeResponses(java.lang.String sUserDN,
                                  java.lang.String[] sChallenges,
                                  java.lang.String[] sResponses)
                           throws NMASChallengeResponseException
setChallengeResponses() - Set set a Challenge/Response set in the secret data on a user object

Parameters:
sUserDN - The distinguished name of the user object to write password data to
sChallenges - An array of Strings containing the challenge questions
sResponses - An array of Strings containing the users responses to the challenge questions
Throws:
NMASChallengeResponseException - contains the nmas error code

setChallengeResponses

public void setChallengeResponses(java.lang.String sTreeName,
                                  java.lang.String sUserDN,
                                  java.lang.String[] sChallenges,
                                  java.lang.String[] sResponses)
                           throws NMASChallengeResponseException
NMASChallengeResponseException

deleteChallengeResponses

public void deleteChallengeResponses(java.lang.String sUserDN,
                                     java.lang.String[] sChallenges)
                              throws NMASChallengeResponseException
deleteChallengeResponses() - Delete these Challenge/Response sets from the secret data on a user object

Parameters:
sUserDN - The distinguished name of the user object to write password data to
sChallenges - An array of Strings containing the challenge questions (The challenge is used as the tag or key to the response to be deleted
Throws:
NMASChallengeResponseException - contains the nmas error code

deleteChallengeResponses

public void deleteChallengeResponses(java.lang.String sTreeName,
                                     java.lang.String sUserDN,
                                     java.lang.String[] sChallenges)
                              throws NMASChallengeResponseException
NMASChallengeResponseException