Code example for CallbackHandler

Methods: handle

0
        @Override 
        public boolean login() throws LoginException { 
            accLogin = AccessController.getContext();
            if (cbHandler != null) {
                try { 
                    cbHandler.handle(null);
                } catch (UnsupportedCallbackException _) {
                    throw (LoginException) new LoginException().initCause(_);
                } catch (IOException _) {
                    throw (LoginException) new LoginException().initCause(_);
                } 
            } 
            return super.login(); 
        } 
 
        @Override 
        public boolean commit() throws LoginException { 
            accCommit = AccessController.getContext();
            return super.commit(); 
        }