public abstract class ChallengeResponseNegotiator extends Negotiator<IChallengeResponse.State,IChallengeResponse.Event> implements IChallengeResponse
Modifier and Type | Class and Description |
---|---|
protected class |
ChallengeResponseNegotiator.Transition |
FiniteStateMachine.ChangeStateTransition, FiniteStateMachine.FailTransition, FiniteStateMachine.IgnoreTransition, FiniteStateMachine.StateChangedEvent
IChallengeResponse.Event, IChallengeResponse.State
ILifecycle.DeferrableActivation
FAIL, IGNORE
ACKNOWLEDGE_FAILURE, ACKNOWLEDGE_SUCCESS
Constructor and Description |
---|
ChallengeResponseNegotiator(boolean initiator) |
Modifier and Type | Method and Description |
---|---|
protected void |
createChallenge(INegotiationContext context,
ByteBuffer challenge) |
protected void |
doBeforeActivate() |
String |
getEncryptionAlgorithmName() |
int |
getEncryptionIterationCount() |
byte[] |
getEncryptionSaltBytes() |
protected IChallengeResponse.State |
getState(INegotiationContext subject) |
protected void |
handleAcknowledgement(INegotiationContext context,
boolean success) |
protected void |
handleChallenge(INegotiationContext context,
ByteBuffer challenge,
ByteBuffer response) |
protected boolean |
handleResponse(INegotiationContext context,
ByteBuffer response) |
void |
setEncryptionAlgorithmName(String encryptionAlgorithmName) |
void |
setEncryptionIterationCount(int encryptionIterationCount) |
void |
setEncryptionSaltBytes(byte[] encryptionSaltBytes) |
protected void |
setState(INegotiationContext subject,
IChallengeResponse.State state) |
getBufferEvent, getFailureState, getInitialState, getStartEvent, getSuccessState, handleFailure, handleSuccess, isInitiator, negotiate, postProcess, receiveBuffer
changeState, createFailTransition, createIgnoreTransition, formatFailMessage, formatIgnoreMessage, formatProcessMessage, getEvents, getStates, getTransition, init, init, initAll, initAll, initEvents, initEvents, initStates, initStates, process
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public ChallengeResponseNegotiator(boolean initiator)
public String getEncryptionAlgorithmName()
public void setEncryptionAlgorithmName(String encryptionAlgorithmName)
public byte[] getEncryptionSaltBytes()
public void setEncryptionSaltBytes(byte[] encryptionSaltBytes)
public int getEncryptionIterationCount()
public void setEncryptionIterationCount(int encryptionIterationCount)
protected void doBeforeActivate() throws Exception
doBeforeActivate
in class Lifecycle
Exception
protected IChallengeResponse.State getState(INegotiationContext subject)
getState
in class FiniteStateMachine<IChallengeResponse.State,IChallengeResponse.Event,INegotiationContext>
protected void setState(INegotiationContext subject, IChallengeResponse.State state)
setState
in class FiniteStateMachine<IChallengeResponse.State,IChallengeResponse.Event,INegotiationContext>
protected void createChallenge(INegotiationContext context, ByteBuffer challenge)
protected void handleChallenge(INegotiationContext context, ByteBuffer challenge, ByteBuffer response)
protected boolean handleResponse(INegotiationContext context, ByteBuffer response)
protected void handleAcknowledgement(INegotiationContext context, boolean success)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.