
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.StateChangedEventIChallengeResponse.Event, IChallengeResponse.StateILifecycle.DeferrableActivationFAIL, IGNOREACKNOWLEDGE_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, receiveBufferchangeState, createFailTransition, createIgnoreTransition, formatFailMessage, formatIgnoreMessage, formatProcessMessage, getEvents, getStates, getTransition, init, init, initAll, initAll, initEvents, initEvents, initStates, initStates, processactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic 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 LifecycleExceptionprotected 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-2014 Eike Stepper (Berlin, Germany) and others.