/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsAuthentificationException(container, cause); } }
/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsAuthentificationException(container, cause); } }
/** * Checks if a login is currently allowed.<p> * * In case no logins are allowed, an Exception is thrown.<p> * * @throws CmsAuthentificationException in case no logins are allowed */ public void checkLoginAllowed() throws CmsAuthentificationException { if ((m_loginMessage != null) && (m_loginMessage.isLoginCurrentlyForbidden())) { // login message has been set and is active throw new CmsAuthentificationException( Messages.get().container(Messages.ERR_LOGIN_FAILED_WITH_MESSAGE_1, m_loginMessage.getMessage())); } }
/** * Checks if a login is currently allowed.<p> * * In case no logins are allowed, an Exception is thrown.<p> * * @throws CmsAuthentificationException in case no logins are allowed */ public void checkLoginAllowed() throws CmsAuthentificationException { if ((m_loginMessage != null) && (m_loginMessage.isLoginCurrentlyForbidden())) { // login message has been set and is active throw new CmsAuthentificationException(Messages.get().container( Messages.ERR_LOGIN_FAILED_WITH_MESSAGE_1, m_loginMessage.getMessage())); } }
throw new CmsAuthentificationException( org.opencms.security.Messages.get().container( org.opencms.security.Messages.ERR_LOGIN_FAILED_2, throw new CmsAuthentificationException( org.opencms.security.Messages.get().container( org.opencms.security.Messages.ERR_LOGIN_FAILED_NO_USER_2, throw new CmsAuthentificationException( org.opencms.security.Messages.get().container( org.opencms.security.Messages.ERR_LOGIN_FAILED_DISABLED_2,
throw new CmsAuthentificationException(org.opencms.security.Messages.get().container( org.opencms.security.Messages.ERR_LOGIN_FAILED_2, userName, throw new CmsAuthentificationException(org.opencms.security.Messages.get().container( org.opencms.security.Messages.ERR_LOGIN_FAILED_NO_USER_2, userName, throw new CmsAuthentificationException(org.opencms.security.Messages.get().container( org.opencms.security.Messages.ERR_LOGIN_FAILED_DISABLED_2, userName,