org.eclipse.net4j.util.security
Class ChallengeResponseNegotiator
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.fsm.FiniteStateMachine<STATE,EVENT,INegotiationContext>
org.eclipse.net4j.util.security.Negotiator<IChallengeResponse.State,IChallengeResponse.Event>
org.eclipse.net4j.util.security.ChallengeResponseNegotiator
- All Implemented Interfaces:
- INotifier, INotifier.Introspection, ILifecycle, ILifecycle.Introspection, IChallengeResponse, INegotiationContext.Receiver, INegotiator
- Direct Known Subclasses:
- ChallengeNegotiator, ResponseNegotiator
public abstract class ChallengeResponseNegotiator
- extends Negotiator<IChallengeResponse.State,IChallengeResponse.Event>
- implements IChallengeResponse
Methods inherited from class org.eclipse.net4j.util.fsm.FiniteStateMachine |
changeState, createFailTransition, createIgnoreTransition, formatFailMessage, formatIgnoreMessage, formatProcessMessage, getEvents, getStates, getTransition, init, init, initAll, initAll, initEvents, initEvents, initStates, initStates, process |
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, deferredDeactivate, doActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, isDeferredDeactivation, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_ALGORITHM_NAME
public static final java.lang.String DEFAULT_ALGORITHM_NAME
- See Also:
- Constant Field Values
ChallengeResponseNegotiator
public ChallengeResponseNegotiator(boolean initiator)
getAlgorithmName
public java.lang.String getAlgorithmName()
setAlgorithmName
public void setAlgorithmName(java.lang.String algorithmName)
doBeforeActivate
protected void doBeforeActivate()
throws java.lang.Exception
- Overrides:
doBeforeActivate
in class Lifecycle
- Throws:
java.lang.Exception
getState
protected IChallengeResponse.State getState(INegotiationContext subject)
- Specified by:
getState
in class FiniteStateMachine<IChallengeResponse.State,IChallengeResponse.Event,INegotiationContext>
setState
protected void setState(INegotiationContext subject,
IChallengeResponse.State state)
- Specified by:
setState
in class FiniteStateMachine<IChallengeResponse.State,IChallengeResponse.Event,INegotiationContext>
createChallenge
protected abstract void createChallenge(INegotiationContext context,
java.nio.ByteBuffer challenge)
handleChallenge
protected abstract void handleChallenge(INegotiationContext context,
java.nio.ByteBuffer challenge,
java.nio.ByteBuffer response)
handleResponse
protected abstract boolean handleResponse(INegotiationContext context,
java.nio.ByteBuffer response)