示例#1
0
        public virtual void startChannel(Channel channel, System.String encoding, System.String data)
        {
            log.debug("SASL-OTP Start Channel CCL");

            clearCredential(channel.Session, this);

            OTPAuthenticator temp = new OTPAuthenticator(this);
            try
            {
                channel.setRequestHandler(temp);
                temp.started(channel);
            }
            catch (SASLException x)
            {
                //UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Throwable.getMessage' may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043"'
                throw new StartChannelException(BEEPError.CODE_REQUESTED_ACTION_NOT_TAKEN, x.Message);
            }
            log.debug("Started an SASL-OTP Channel");
        }