org.picketbox.http.PicketBoxHTTPMessages Maven / Gradle / Ivy
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.picketbox.http;
import java.io.IOException;
import javax.servlet.ServletException;
import org.jboss.logging.Cause;
import org.jboss.logging.Message;
import org.jboss.logging.MessageBundle;
import org.jboss.logging.Messages;
import org.picketbox.core.exceptions.AuthenticationException;
import org.picketbox.core.exceptions.AuthorizationException;
import org.picketbox.core.exceptions.ConfigurationException;
import org.picketbox.core.exceptions.PicketBoxSessionException;
import org.picketbox.core.exceptions.ProcessingException;
/**
* An instance of {@link MessageBundle} from JBoss Logging
*
* @author Stefan Guilhen
* @since Jul 10, 2012
*/
@MessageBundle(projectCode = "PBOXHTTP")
public interface PicketBoxHTTPMessages {
PicketBoxHTTPMessages MESSAGES = Messages.getBundle(PicketBoxHTTPMessages.class);
@Message(id = 1, value = "Unable to proceed: AuthenticationManager has not been injected")
AuthenticationException invalidNullAuthenticationManager();
@Message(id = 2, value = "Unable to proceed: ServletContext has not been injected")
AuthenticationException invalidNullServletContext();
@Message(id = 3, value = "Unable to identify certificate principal")
AuthenticationException unableToIdentifyCertPrincipal();
@Message(id = 4, value = "Unable to forward to cached request")
AuthenticationException unableToForwardToCachedRequest();
@Message(id = 5, value = "RequestDispatcher could not be found")
AuthenticationException unableToFindRequestDispatcher();
@Message(id = 6, value = "Required init parameter %s is missing")
ServletException missingRequiredInitParameter(String paramName);
@Message(id = 7, value = "The argument %s cannot be null")
IllegalArgumentException invalidNullArgument(String argName);
@Message(id = 8, value = "Error encoding from file %s")
IllegalStateException errorEncodingFromFile(String fileName, @Cause Throwable throwable);
@Message(id = 9, value = "Error decoding from file %s")
IllegalStateException errorDecodingFromFile(String fileName, @Cause Throwable throwable);
@Message(id = 10, value = "Error decoding from file %s: file is too big (%s bytes)")
IllegalStateException errorDecodingFromBigInputFile(String fileName, long fileSize);
@Message(id = 11, value = "Base64 input not properly padded")
IOException invalidBase64Padding();
@Message(id = 12, value = "Invalid Base64 character found: %s")
String invalidBase64CharacterMessage(byte character);
@Message(id = 13, value = "Error reading Base64 stream: nothing to read")
IOException errorReadingBase64Stream();
@Message(id = 14, value = "Unable to find properties file: %s")
RuntimeException unableToFindPropertiesFile(String fileName);
@Message(id = 15, value = "Unable to redirect user to default page: %s")
AuthenticationException failRedirectToDefaultPage(String page, @Cause Throwable t);
@Message(id = 16, value = "User authentication failed.")
AuthenticationException authenticationFailed(@Cause Throwable t);
@Message(id = 17, value = "Missing required property: %s")
IllegalStateException missingRequiredProperty(String property);
@Message(id = 18, value = "Invalid configuration: either provide a JPA config name or a DataSource (via injection or JNDI)")
IllegalStateException invalidDatabaseAuthenticationManagerConfiguration();
@Message(id = 19, value = "Query %s found no results")
String queryFoundNoResultsMessage(String query);
@Message(id = 20, value = "Failed to validate credentials")
AuthenticationException failedToValidateCredentials();
@Message(id = 22, value = "Instance already started.")
IllegalStateException instanceAlreadyStarted();
@Message(id = 23, value = "Instance alredy stopped.")
IllegalStateException instanceAlreadyStopped();
@Message(id = 24, value = "Instance not started.")
IllegalStateException instanceNotStarted();
@Message(id = 25, value = "Could not build and start PicketBoxManager.")
ConfigurationException failedToConfigurePicketBoxManager(@Cause Throwable t);
@Message(id = 26, value = "PicketBox Manager was not properly started.")
ConfigurationException picketBoxManagerNotProperlyStarted();
@Message(id = 27, value = "Session is invalidated")
PicketBoxSessionException invalidatedSession();
@Message(id = 28, value = "User authorization failed.")
AuthorizationException authorizationFailed(@Cause Throwable t);
@Message(id = 29, value = "User session is not valid.")
IllegalStateException invalidUserSession();
@Message(id = 30, value = "Failed to close NamingEnumeration")
RuntimeException namingEnumerationClose(@Cause Throwable throwable);
@Message(id = 31, value = "Failed to construct Ldap Context")
RuntimeException ldapCtxConstructionFailure(@Cause Throwable throwable);
@Message(id = 32, value = "Ldap Search Config is missing")
RuntimeException ldapSearchConfigMissing();
@Message(id = 33, value = "Ldap Search Base is missing")
RuntimeException ldapSearchBaseMissing();
@Message(id = 34, value = "Ldap Store Config is missing")
RuntimeException ldapStoreConfigMissing();
@Message(id = 35, value = "User Dn String is missing")
RuntimeException userDNStringMissing();
@Message(id = 36, value = "LDAP Search Failed.")
RuntimeException ldapSearchFailed(@Cause Throwable t);
@Message(id = 37, value = "Basic LDAP Config Missing.")
RuntimeException basicLdapConfigMissing();
@Message(id = 40, value = "Processing Exception.")
ProcessingException processingException(@Cause Throwable throwable);
@Message(id = 45, value = "Unsupported Feature.")
IllegalStateException unsupportedFeature();
@Message(id = 46, value = "Exception.")
IllegalStateException runtimeException(@Cause Throwable e);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy