public SaslNegotiator(SaslTransport transport, SaslTransportProvider provider, bool isInitiator) { this.transport = transport; this.provider = provider; this.isInitiator = isInitiator; this.state = SaslNegotiator.SaslState.Start; }
public SaslNegotiator(SaslTransport transport, SaslTransportProvider provider) { this.transport = transport; this.provider = provider; this.onReadFrameComplete = this.OnReadFrameComplete; this.onWriteFrameComplete = this.OnWriteFrameComplete; this.state = SaslState.Start; }
private void OnSaslInit(SaslInit init) { if (this.state != SaslNegotiator.SaslState.WaitingForInit) { throw new AmqpException(AmqpError.IllegalState, SRAmqp.AmqpIllegalOperationState("R:SASL-INIT", this.state)); } this.state = SaslNegotiator.SaslState.Negotiating; SaslTransportProvider saslTransportProvider = this.provider; AmqpSymbol mechanism = init.Mechanism; this.saslHandler = saslTransportProvider.GetHandler(mechanism.Value, true); this.saslHandler.Start(this, init, false); }
public SaslTransport(TransportBase transport, SaslTransportProvider provider, bool isInitiator) : base("sasl") { this.innerTransport = transport; this.negotiator = new SaslNegotiator(this, provider, isInitiator); }
public SaslTransport(TransportBase transport, SaslTransportProvider provider, bool isInitiator) { this.innerTransport = transport; this.provider = provider; this.isInitiator = isInitiator; }