예제 #1
0
 public SaslNegotiator(SaslTransport transport, SaslTransportProvider provider, bool isInitiator)
 {
     this.transport   = transport;
     this.provider    = provider;
     this.isInitiator = isInitiator;
     this.state       = SaslNegotiator.SaslState.Start;
 }
예제 #2
0
 public SaslNegotiator(SaslTransport transport, SaslTransportProvider provider)
 {
     this.transport = transport;
     this.provider = provider;
     this.onReadFrameComplete = this.OnReadFrameComplete;
     this.onWriteFrameComplete = this.OnWriteFrameComplete;
     this.state = SaslState.Start;
 }
예제 #3
0
 public SaslNegotiator(SaslTransport transport, SaslTransportProvider provider)
 {
     this.transport            = transport;
     this.provider             = provider;
     this.onReadFrameComplete  = this.OnReadFrameComplete;
     this.onWriteFrameComplete = this.OnWriteFrameComplete;
     this.state = SaslState.Start;
 }
예제 #4
0
        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);
        }
예제 #5
0
 public SaslTransport(TransportBase transport, SaslTransportProvider provider, bool isInitiator) : base("sasl")
 {
     this.innerTransport = transport;
     this.negotiator     = new SaslNegotiator(this, provider, isInitiator);
 }
예제 #6
0
 public SaslTransport(TransportBase transport, SaslTransportProvider provider, bool isInitiator)
 {
     this.innerTransport = transport;
     this.provider       = provider;
     this.isInitiator    = isInitiator;
 }
예제 #7
0
 public SaslTransport(TransportBase transport, SaslTransportProvider provider, bool isInitiator)
 {
     this.innerTransport = transport;
     this.provider = provider;
     this.isInitiator = isInitiator;
 }