com.silanis.esl.sdk.builder
Class SignerBuilder.ChallengeBuilder

java.lang.Object
  extended by com.silanis.esl.sdk.builder.SignerBuilder.AuthenticationBuilder
      extended by com.silanis.esl.sdk.builder.SignerBuilder.ChallengeBuilder
Enclosing class:
SignerBuilder

public static class SignerBuilder.ChallengeBuilder
extends SignerBuilder.AuthenticationBuilder

Challenge builder is a convenient class used to create an Authentication object. It is used to help define the authentication questions and answers when the user logs on to eSignLive.


Constructor Summary
SignerBuilder.ChallengeBuilder(String question)
          Challenge builder constructor.
 
Method Summary
 SignerBuilder.ChallengeBuilder answer(String answer)
          Add answer to the first and second question.
 SignerBuilder.ChallengeBuilder answer(String answer, Challenge.MaskOptions maskOption)
          Deprecated. 
 SignerBuilder.ChallengeBuilder answerWithMaskInput(String answer)
          Add answer to the first and second question with mask input.
 Authentication build()
           
static SignerBuilder.ChallengeBuilder firstQuestion(String question)
          First question asked to the user when they log on to eSignLive.
 SignerBuilder.ChallengeBuilder secondQuestion(String question)
          Second question asked to the user when they log on to eSignLive.
 
Methods inherited from class com.silanis.esl.sdk.builder.SignerBuilder.AuthenticationBuilder
newAuthenticationWithMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignerBuilder.ChallengeBuilder

public SignerBuilder.ChallengeBuilder(String question)
Challenge builder constructor.

Parameters:
question - the question @size(min="1", max="255")
Method Detail

firstQuestion

public static SignerBuilder.ChallengeBuilder firstQuestion(String question)
First question asked to the user when they log on to eSignLive.

Parameters:
question - the first question @size(min="1", max="255")
Returns:
This

secondQuestion

public SignerBuilder.ChallengeBuilder secondQuestion(String question)
Second question asked to the user when they log on to eSignLive.

Parameters:
question - the second question @size(min="1", max="255")
Returns:
This

answer

public SignerBuilder.ChallengeBuilder answer(String answer)
Add answer to the first and second question. Must be invoked in order in order to provide the first question's answer and the second question's answer.

It should not be invoked more than twice.

Parameters:
answer - answer to the authentication questions @size(min="1", max="255")
Returns:
This
See Also:
firstQuestion(String), secondQuestion(String)

answer

@Deprecated
public SignerBuilder.ChallengeBuilder answer(String answer,
                                                        Challenge.MaskOptions maskOption)
Deprecated. 

Add answer to the first and second question with mask input option. Must be invoked in order in order to provide the first question's answer and the second question's answer.

It should not be invoked more than twice.

Parameters:
answer - answer to the authentication questions @size(min="1", max="255")
maskOption - enable/disable masking of challenge
Returns:
This
See Also:
firstQuestion(String), secondQuestion(String)

answerWithMaskInput

public SignerBuilder.ChallengeBuilder answerWithMaskInput(String answer)
Add answer to the first and second question with mask input. Must be invoked in order in order to provide the first question's answer and the second question's answer.

It should not be invoked more than twice.

Parameters:
answer - answer to the authentication questions @size(min="1", max="255")
Returns:
This
See Also:
firstQuestion(String), secondQuestion(String)

build

public Authentication build()
Overrides:
build in class SignerBuilder.AuthenticationBuilder


Copyright 2014, Silanis Technology, Inc. All rights reserved.