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,
java.nio.ByteBuffer challenge) |
protected void |
doBeforeActivate() |
java.lang.String |
getEncryptionAlgorithmName() |
int |
getEncryptionIterationCount() |
byte[] |
getEncryptionSaltBytes() |
protected IChallengeResponse.State |
getState(INegotiationContext subject) |
protected void |
handleAcknowledgement(INegotiationContext context,
boolean success) |
protected void |
handleChallenge(INegotiationContext context,
java.nio.ByteBuffer challenge,
java.nio.ByteBuffer response) |
protected boolean |
handleResponse(INegotiationContext context,
java.nio.ByteBuffer response) |
void |
setEncryptionAlgorithmName(java.lang.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 java.lang.String getEncryptionAlgorithmName()
public void setEncryptionAlgorithmName(java.lang.String encryptionAlgorithmName)
public byte[] getEncryptionSaltBytes()
public void setEncryptionSaltBytes(byte[] encryptionSaltBytes)
public int getEncryptionIterationCount()
public void setEncryptionIterationCount(int encryptionIterationCount)
protected void doBeforeActivate()
throws java.lang.Exception
doBeforeActivate in class Lifecyclejava.lang.Exceptionprotected 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, java.nio.ByteBuffer challenge)
protected void handleChallenge(INegotiationContext context, java.nio.ByteBuffer challenge, java.nio.ByteBuffer response)
protected boolean handleResponse(INegotiationContext context, java.nio.ByteBuffer response)
protected void handleAcknowledgement(INegotiationContext context, boolean success)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html