/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) return (false); // Clean up if overall authentication failed if (committed) logout(); else { committed = false; principal = null; } log.debug("Abort"); return (true); }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) return (false); // Clean up if overall authentication failed if (committed) logout(); else { committed = false; principal = null; } log.debug("Abort"); return (true); }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) return (false); // Clean up if overall authentication failed if (committed) logout(); else { committed = false; principal = null; } log.debug("Abort"); return (true); }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) return (false); // Clean up if overall authentication failed if (committed) logout(); else { committed = false; principal = null; } log.debug("Abort"); return (true); }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) return (false); // Clean up if overall authentication failed if (committed) logout(); else { committed = false; principal = null; } log.debug("Abort"); return (true); }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) return (false); // Clean up if overall authentication failed if (committed) logout(); else { committed = false; principal = null; } log.debug("Abort"); return (true); }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) return (false); // Clean up if overall authentication failed if (committed) logout(); else { committed = false; principal = null; } log.debug("Abort"); return (true); }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) { return false; } // Clean up if overall authentication failed if (committed) { logout(); } else { committed = false; principal = null; } if (log.isDebugEnabled()) { log.debug("Abort"); } return true; }
/** * Phase 2 of authenticating a <code>Subject</code> when Phase 1 * fails. This method is called if the <code>LoginContext</code> * failed somewhere in the overall authentication chain. * * @return <code>true</code> if this method succeeded, or * <code>false</code> if this <code>LoginModule</code> should be * ignored * * @exception LoginException if the abort fails */ @Override public boolean abort() throws LoginException { // If our authentication was not successful, just return false if (principal == null) { return false; } // Clean up if overall authentication failed if (committed) { logout(); } else { committed = false; principal = null; } if (log.isDebugEnabled()) { log.debug("Abort"); } return true; }