Java源码示例:org.wso2.carbon.identity.mgt.stub.dto.UserChallengesDTO

示例1
public UserChallengesDTO[] getChallengeQuestionsOfUser(String userId, String userKey)
        throws AxisFault {
    try {
        return stub.getChallengeQuestionsForUser(userId, userKey);
    } catch (Exception e) {
        handleException(e.getMessage(), e);
    }

    return new UserChallengesDTO[0];
}
 
示例2
public VerificationBean verifyChallengeQuestion(String userId, String userKey, String question,
                                                String answer) throws AxisFault {
    try {
        UserChallengesDTO dto = new UserChallengesDTO();
        dto.setQuestion(question);
        dto.setAnswer(answer);
        return stub.verifyChallengeQuestion(userId, userKey, new UserChallengesDTO[]{dto});
    } catch (Exception e) {
        handleException(e.getMessage(), e);
    }

    return null;
}
 
示例3
public void setChallengeQuestionsOfUser(String userId, UserChallengesDTO[] userChallengesDTOs)
        throws AxisFault {
    try {
        stub.setChallengeQuestionsOfUser(userId, userChallengesDTOs);
    } catch (Exception e) {
        handleException(e.getMessage(), e);
    }
}
 
示例4
public UserChallengesDTO[] getChallengeQuestionsOfUser(String userId) throws AxisFault {

        try {
            return stub.getChallengeQuestionsOfUser(userId);
        } catch (Exception e) {
            handleException(e.getMessage(), e);
        }

        return new UserChallengesDTO[0];
    }
 
示例5
public UserChallengesDTO[] getChallengeQuestionsOfUser(String userId, String userKey)
        throws AxisFault {
    try {
        return stub.getChallengeQuestionsForUser(userId, userKey);
    } catch (Exception e) {
        handleException(e.getMessage(), e);
    }

    return new UserChallengesDTO[0];
}
 
示例6
public VerificationBean verifyChallengeQuestion(String userId, String userKey, String question,
                                                String answer) throws AxisFault {
    try {
        UserChallengesDTO dto = new UserChallengesDTO();
        dto.setQuestion(question);
        dto.setAnswer(answer);
        return stub.verifyChallengeQuestion(userId, userKey, new UserChallengesDTO[]{dto});
    } catch (Exception e) {
        handleException(e.getMessage(), e);
    }

    return null;
}
 
示例7
public void setChallengeQuestionsOfUser(String userId, UserChallengesDTO[] userChallengesDTOs)
        throws AxisFault {
    try {
        stub.setChallengeQuestionsOfUser(userId, userChallengesDTOs);
    } catch (Exception e) {
        handleException(e.getMessage(), e);
    }
}
 
示例8
public UserChallengesDTO[] getChallengeQuestionsOfUser(String userId) throws AxisFault {

        try {
            return stub.getChallengeQuestionsOfUser(userId);
        } catch (Exception e) {
            handleException(e.getMessage(), e);
        }

        return new UserChallengesDTO[0];
    }
 
示例9
/**
 * Verifies user answers for the user challenge question set.
 *
 * @param username username of the user
 * @param confirmationCode confirmation code
 * @param userChallengesDTOs an array of UserChallengesDTO instances which holds the respective question and answer
 * @return an instance of VerificationBean which denotes the status
 * @throws RemoteException
 * @throws UserInformationRecoveryServiceIdentityMgtServiceExceptionException
 */
public VerificationBean verifyUserChallengeAnswers(String username, String confirmationCode,
                                                  UserChallengesDTO[] userChallengesDTOs)
        throws RemoteException, UserInformationRecoveryServiceIdentityMgtServiceExceptionException {

    return stub.verifyUserChallengeAnswers(username, confirmationCode, userChallengesDTOs);
}
 
示例10
/**
 * Sets a chosen set of challenge questions and their answers for the user.
 *
 * @param userName username of the user
 * @param userChallengesDTOs an array of UserChallengesDTO instances
 * @throws UserIdentityManagementAdminServiceIdentityMgtServiceExceptionException
 * @throws RemoteException
 */
public void setChallengeQuestionsOfUser(String userName, UserChallengesDTO[] userChallengesDTOs)
        throws UserIdentityManagementAdminServiceIdentityMgtServiceExceptionException, RemoteException {
    stub.setChallengeQuestionsOfUser(userName, userChallengesDTOs);
}
 
示例11
/**
 * Returns the question corresponded with the provided question id.
 *
 * @param username username of the user
 * @param code confirmation code
 * @param id question id
 * @return and instance of UserChallengesDTO which holds the question
 * @throws RemoteException
 * @throws UserInformationRecoveryServiceIdentityMgtServiceExceptionException
 */
public UserChallengesDTO getChallengeQuestion(String username, String code, String id)
        throws RemoteException, UserInformationRecoveryServiceIdentityMgtServiceExceptionException {

    return stub.getUserChallengeQuestion(username, code, id);
}