All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.jose.i18n.Messages_$bundle Maven / Gradle / Ivy

The newest version!
package org.jboss.resteasy.jose.i18n;

import java.util.Locale;
import java.io.Serializable;
import javax.annotation.processing.Generated;
import java.lang.String;
import org.jboss.resteasy.jose.jwe.EncryptionMethod;
import org.jboss.resteasy.jose.jwe.CompressionAlgorithm;

/**
 * Warning this class consists of generated code.
 */
@Generated(value = "org.jboss.logging.processor.generator.model.MessageBundleImplementor", date = "2024-11-11T13:55:59-0800")
public class Messages_$bundle implements Messages, Serializable {
    private static final long serialVersionUID = 1L;
    protected Messages_$bundle() {}
    public static final Messages_$bundle INSTANCE = new Messages_$bundle();
    protected Object readResolve() {
        return INSTANCE;
    }
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    protected String algorithmOfSharedSymmetricKey$str() {
        return "RESTEASY014000: The algorithm of the shared symmetric key must be AES";
    }
    @Override
    public final String algorithmOfSharedSymmetricKey() {
        return String.format(getLoggingLocale(), algorithmOfSharedSymmetricKey$str());
    }
    protected String algorithmWasNull$str() {
        return "RESTEASY014005: Algorithm was null";
    }
    @Override
    public final String algorithmWasNull() {
        return String.format(getLoggingLocale(), algorithmWasNull$str());
    }
    protected String authenticationTagMustNotBeNull$str() {
        return "RESTEASY014010: The authentication tag must not be null";
    }
    @Override
    public final String authenticationTagMustNotBeNull() {
        return String.format(getLoggingLocale(), authenticationTagMustNotBeNull$str());
    }
    protected String cekKeyLengthMismatch$str() {
        return "RESTEASY014015: CEK key length mismatch: {0} != {1}";
    }
    @Override
    public final String cekKeyLengthMismatch(final int length1, final int length2) {
        return _formatMessage(cekKeyLengthMismatch$str(), length1, length2);
    }
    private String _formatMessage(final String format, final Object... args) {
        final java.text.MessageFormat formatter = new java.text.MessageFormat(format, getLoggingLocale());
        return formatter.format(args, new StringBuffer(), new java.text.FieldPosition(0)).toString();
    }
    protected String cipherTextMustNotBeNull$str() {
        return "RESTEASY014020: The cipher text must not be null";
    }
    @Override
    public final String cipherTextMustNotBeNull() {
        return String.format(getLoggingLocale(), cipherTextMustNotBeNull$str());
    }
    protected String contentEncryptionKeyLength$str() {
        return "RESTEASY014025: The Content Encryption Key (CEK) length must be {0} bits for {1} encryption";
    }
    @Override
    public final String contentEncryptionKeyLength(final int length, final EncryptionMethod method) {
        return _formatMessage(contentEncryptionKeyLength$str(), length, method);
    }
    protected String couldNotFindMessageBodyReaderForJSON$str() {
        return "RESTEASY014030: Could not find MessageBodyReader for JSON";
    }
    @Override
    public final String couldNotFindMessageBodyReaderForJSON() {
        return String.format(getLoggingLocale(), couldNotFindMessageBodyReaderForJSON$str());
    }
    protected String couldNotFindMessageBodyWriterForJSON$str() {
        return "RESTEASY014035: Could not find MessageBodyWriter for JSON";
    }
    @Override
    public final String couldNotFindMessageBodyWriterForJSON() {
        return String.format(getLoggingLocale(), couldNotFindMessageBodyWriterForJSON$str());
    }
    protected String couldntCompressPlainText$str() {
        return "RESTEASY014040: Couldn't compress plain text: %s";
    }
    @Override
    public final String couldntCompressPlainText(final String message) {
        return String.format(getLoggingLocale(), couldntCompressPlainText$str(), message);
    }
    protected String couldntDecompressPlainText$str() {
        return "RESTEASY014045: Couldn't decompress plain text: %s";
    }
    @Override
    public final String couldntDecompressPlainText(final String message) {
        return String.format(getLoggingLocale(), couldntDecompressPlainText$str(), message);
    }
    protected String couldntDecryptCEK$str() {
        return "RESTEASY014050: Couldn't decrypt Content Encryption Key (CEK): %s";
    }
    @Override
    public final String couldntDecryptCEK(final String message) {
        return String.format(getLoggingLocale(), couldntDecryptCEK$str(), message);
    }
    protected String couldntEncryptCEK$str() {
        return "RESTEASY014055: Couldn't encrypt Content Encryption Key (CEK): %s";
    }
    @Override
    public final String couldntEncryptCEK(final String message) {
        return String.format(getLoggingLocale(), couldntEncryptCEK$str(), message);
    }
    protected String couldntGenerateGCMAuthentication$str() {
        return "RESTEASY014060: Couldn't generate GCM authentication tag: %s";
    }
    @Override
    public final String couldntGenerateGCMAuthentication(final String message) {
        return String.format(getLoggingLocale(), couldntGenerateGCMAuthentication$str(), message);
    }
    protected String couldntValidateGCMAuthentication$str() {
        return "RESTEASY014065: Couldn't validate GCM authentication tag: %s";
    }
    @Override
    public final String couldntValidateGCMAuthentication(final String message) {
        return String.format(getLoggingLocale(), couldntValidateGCMAuthentication$str(), message);
    }
    protected String encryptedKeyMustNotBeNull$str() {
        return "RESTEASY014070: The encrypted key must not be null";
    }
    @Override
    public final String encryptedKeyMustNotBeNull() {
        return String.format(getLoggingLocale(), encryptedKeyMustNotBeNull$str());
    }
    protected String encryptionMethodWasNull$str() {
        return "RESTEASY014075: EncryptionMethod was null";
    }
    @Override
    public final String encryptionMethodWasNull() {
        return String.format(getLoggingLocale(), encryptionMethodWasNull$str());
    }
    protected String illegalBase64UrlString$str() {
        return "RESTEASY014080: Illegal base64url string!";
    }
    @Override
    public final String illegalBase64UrlString() {
        return String.format(getLoggingLocale(), illegalBase64UrlString$str());
    }
    protected String initializationVectorMustNotBeNull$str() {
        return "RESTEASY014085: The initialization vector (IV) must not be null";
    }
    @Override
    public final String initializationVectorMustNotBeNull() {
        return String.format(getLoggingLocale(), initializationVectorMustNotBeNull$str());
    }
    protected String invalidHMACkey$str() {
        return "RESTEASY014090: Invalid HMAC key: %s";
    }
    @Override
    public final String invalidHMACkey(final String message) {
        return String.format(getLoggingLocale(), invalidHMACkey$str(), message);
    }
    protected String lengthOfSharedSymmetricKey$str() {
        return "RESTEASY014095: The length of the shared symmetric key must be 128 bits (16 bytes), 256 bits (32 bytes) or 512 bites (64 bytes)";
    }
    @Override
    public final String lengthOfSharedSymmetricKey() {
        return String.format(getLoggingLocale(), lengthOfSharedSymmetricKey$str());
    }
    protected String macCheckFailed$str() {
        return "RESTEASY014100: MAC check failed";
    }
    @Override
    public final String macCheckFailed() {
        return String.format(getLoggingLocale(), macCheckFailed$str());
    }
    protected String notAMACalgorithm$str() {
        return "RESTEASY014105: Not a MAC Algorithm";
    }
    @Override
    public final String notAMACalgorithm() {
        return String.format(getLoggingLocale(), notAMACalgorithm$str());
    }
    protected String notAnRSAalgorithm$str() {
        return "RESTEASY014110: Not an RSA Algorithm";
    }
    @Override
    public final String notAnRSAalgorithm() {
        return String.format(getLoggingLocale(), notAnRSAalgorithm$str());
    }
    protected String notEncryptedWithDirAlgorithm$str() {
        return "RESTEASY014115: Not encrypted with dir algorithm";
    }
    @Override
    public final String notEncryptedWithDirAlgorithm() {
        return String.format(getLoggingLocale(), notEncryptedWithDirAlgorithm$str());
    }
    protected String notEncryptedWithRSAalgorithm$str() {
        return "RESTEASY014120: Not encrypted with RSA algorithm";
    }
    @Override
    public final String notEncryptedWithRSAalgorithm() {
        return String.format(getLoggingLocale(), notEncryptedWithRSAalgorithm$str());
    }
    protected String parsingError$str() {
        return "RESTEASY014125: Parsing error";
    }
    @Override
    public final String parsingError() {
        return String.format(getLoggingLocale(), parsingError$str());
    }
    protected String unableToFindMessageBodyWriter$str() {
        return "RESTEASY014130: Unable to find MessageBodyWriter";
    }
    @Override
    public final String unableToFindMessageBodyWriter() {
        return String.format(getLoggingLocale(), unableToFindMessageBodyWriter$str());
    }
    protected String unableToFindReaderForContentType$str() {
        return "RESTEASY014135: Unable to find reader for content type";
    }
    @Override
    public final String unableToFindReaderForContentType() {
        return String.format(getLoggingLocale(), unableToFindReaderForContentType$str());
    }
    protected String unexpectedEncryptedKey$str() {
        return "RESTEASY014140: Unexpected encrypted key, must be omitted";
    }
    @Override
    public final String unexpectedEncryptedKey() {
        return String.format(getLoggingLocale(), unexpectedEncryptedKey$str());
    }
    protected String unknownLength$str() {
        return "RESTEASY014145: Unknown length";
    }
    @Override
    public final String unknownLength() {
        return String.format(getLoggingLocale(), unknownLength$str());
    }
    protected String unsupportedAlgorithm$str() {
        return "RESTEASY014150: Unsupported algorithm, must be \"dir\"";
    }
    @Override
    public final String unsupportedAlgorithm() {
        return String.format(getLoggingLocale(), unsupportedAlgorithm$str());
    }
    protected String unsupportedCompressionAlgorithm$str() {
        return "RESTEASY014155: Unsupported compression algorithm: %s";
    }
    @Override
    public final String unsupportedCompressionAlgorithm(final CompressionAlgorithm algorithm) {
        return String.format(getLoggingLocale(), unsupportedCompressionAlgorithm$str(), algorithm);
    }
    protected String unsupportedEncryptionMethod$str() {
        return "RESTEASY014160: Unsupported encryption method, must be A128CBC_HS256, A256CBC_HS512, A128GCM or A128GCM";
    }
    @Override
    public final String unsupportedEncryptionMethod() {
        return String.format(getLoggingLocale(), unsupportedEncryptionMethod$str());
    }
    protected String unsupportedHMACalgorithm$str() {
        return "RESTEASY014165: Unsupported HMAC algorithm: %s";
    }
    @Override
    public final String unsupportedHMACalgorithm(final String message) {
        return String.format(getLoggingLocale(), unsupportedHMACalgorithm$str(), message);
    }
    protected String unsupportedJWEalgorithm$str() {
        return "RESTEASY014170: Unsupported JWE algorithm, must be RSA1_5 or RSA_OAEP";
    }
    @Override
    public final String unsupportedJWEalgorithm() {
        return String.format(getLoggingLocale(), unsupportedJWEalgorithm$str());
    }
    protected String unsupportedKeyLength$str() {
        return "RESTEASY014175: Unsupported AES/CBC/PKCS5Padding/HMAC-SHA2 key length, must be 256 or 512 bits";
    }
    @Override
    public final String unsupportedKeyLength() {
        return String.format(getLoggingLocale(), unsupportedKeyLength$str());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy