Code example for CallbackHandler

Methods: handle

0
                throw new SaslException("Protocol is null"); 
            } 
            TextOutputCallback[] cb = { new TextOutputCallback(
                    TextOutputCallback.INFORMATION, "Information") }; 
            try { 
                hnd.handle(cb);
            } catch (UnsupportedCallbackException e) {
                throw new SaslException("Incorrect callback handlere", e);
            } catch (IOException e) {
                throw new SaslException("Incorrect callback handlere", e);
            } 
            return new mySaslClient(); 
        } 
 
        public class mySaslClient implements SaslClient { 
            public mySaslClient() { 
                super(); 
            } 
 
            public Object getNegotiatedProperty(String s) {
                return "";