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

com.sun.xml.wss.logging.impl.misc.LogStringsMessages Maven / Gradle / Ivy

There is a newer version: 4.0.4
Show newest version

package com.sun.xml.wss.logging.impl.misc;

import java.util.Locale;
import java.util.ResourceBundle;
import com.sun.istack.localization.Localizable;
import com.sun.istack.localization.LocalizableMessageFactory;
import com.sun.istack.localization.LocalizableMessageFactory.ResourceBundleSupplier;
import com.sun.istack.localization.Localizer;


/**
 * Defines string formatting method for each constant in the resource file
 * 
 */
public final class LogStringsMessages {

    private final static String BUNDLE_NAME = "com.sun.xml.wss.logging.impl.misc.LogStrings";
    private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new LogStringsMessages.BundleSupplier());
    private final static Localizer LOCALIZER = new Localizer();

    public static Localizable localizableWSS_1509_FAILED_INIT_TRUSTSTORE() {
        return MESSAGE_FACTORY.getMessage("WSS1509.failed.init.truststore");
    }

    /**
     * WSS1509: Failed to initialize TrustStore
     * 
     */
    public static String WSS_1509_FAILED_INIT_TRUSTSTORE() {
        return LOCALIZER.localize(localizableWSS_1509_FAILED_INIT_TRUSTSTORE());
    }

    public static Localizable localizableWSS_1518_FAILEDTO_VALIDATE_CERTIFICATE() {
        return MESSAGE_FACTORY.getMessage("WSS1518.failedto.validate.certificate");
    }

    /**
     * WSS1518: Failed to validate certificate
     * 
     */
    public static String WSS_1518_FAILEDTO_VALIDATE_CERTIFICATE() {
        return LOCALIZER.localize(localizableWSS_1518_FAILEDTO_VALIDATE_CERTIFICATE());
    }

    public static Localizable localizableWSS_1521_ERROR_GETTING_USER_CLASS() {
        return MESSAGE_FACTORY.getMessage("WSS1521.error.getting.userClass");
    }

    /**
     * WSS1512: Could not find User Class
     * 
     */
    public static String WSS_1521_ERROR_GETTING_USER_CLASS() {
        return LOCALIZER.localize(localizableWSS_1521_ERROR_GETTING_USER_CLASS());
    }

    public static Localizable localizableWSS_1539_PRIVATE_KEY_NULL_ERROR() {
        return MESSAGE_FACTORY.getMessage("WSS1539.privateKey.null.error");
    }

    /**
     * WSS1539: PrivateKey returned by PrivateKeyCallback was Null
     * 
     */
    public static String WSS_1539_PRIVATE_KEY_NULL_ERROR() {
        return LOCALIZER.localize(localizableWSS_1539_PRIVATE_KEY_NULL_ERROR());
    }

    public static Localizable localizableWSS_1531_EXCEPTION_INSTANTIATING_CERTSELECTOR() {
        return MESSAGE_FACTORY.getMessage("WSS1531.exception.instantiating.certselector");
    }

    /**
     * WSS1531: Exception occurred while instantiating User supplied CertSelector
     * 
     */
    public static String WSS_1531_EXCEPTION_INSTANTIATING_CERTSELECTOR() {
        return LOCALIZER.localize(localizableWSS_1531_EXCEPTION_INSTANTIATING_CERTSELECTOR());
    }

    public static Localizable localizableWSS_1532_EXCEPTION_INSTANTIATING_ALIASSELECTOR() {
        return MESSAGE_FACTORY.getMessage("WSS1532.exception.instantiating.aliasselector");
    }

    /**
     * WSS1532: Exception occurred while instantiating User supplied AliasSelector
     * 
     */
    public static String WSS_1532_EXCEPTION_INSTANTIATING_ALIASSELECTOR() {
        return LOCALIZER.localize(localizableWSS_1532_EXCEPTION_INSTANTIATING_ALIASSELECTOR());
    }

    public static Localizable localizableWSS_1520_ERROR_GETTING_RAW_CONTENT() {
        return MESSAGE_FACTORY.getMessage("WSS1520.error.getting.rawContent");
    }

    /**
     * WSS1520: Error while getting certificate's raw content
     * 
     */
    public static String WSS_1520_ERROR_GETTING_RAW_CONTENT() {
        return LOCALIZER.localize(localizableWSS_1520_ERROR_GETTING_RAW_CONTENT());
    }

    public static Localizable localizableWSS_1524_UNABLETO_RESOLVE_URI_WSIT_HOME_NOTSET() {
        return MESSAGE_FACTORY.getMessage("WSS1524.unableto.resolve.URI.WSIT_HOME.notset");
    }

    /**
     * WSS1524: The specified config URL in the WSDL could not be resolved because System Property WSIT_HOME was not set
     * 
     */
    public static String WSS_1524_UNABLETO_RESOLVE_URI_WSIT_HOME_NOTSET() {
        return LOCALIZER.localize(localizableWSS_1524_UNABLETO_RESOLVE_URI_WSIT_HOME_NOTSET());
    }

    public static Localizable localizableWSS_1519_NO_DIGEST_ALGORITHM() {
        return MESSAGE_FACTORY.getMessage("WSS1519.no.digest.algorithm");
    }

    /**
     * WSS1519: Digest algorithm SHA-1 not found
     * 
     */
    public static String WSS_1519_NO_DIGEST_ALGORITHM() {
        return LOCALIZER.localize(localizableWSS_1519_NO_DIGEST_ALGORITHM());
    }

    public static Localizable localizableWSS_1508_FAILED_VALIDATE_SAML_ASSERTION() {
        return MESSAGE_FACTORY.getMessage("WSS1508.failed.validateSAMLAssertion");
    }

    /**
     * WSS1508: Failed to validate SAML Assertion
     * 
     */
    public static String WSS_1508_FAILED_VALIDATE_SAML_ASSERTION() {
        return LOCALIZER.localize(localizableWSS_1508_FAILED_VALIDATE_SAML_ASSERTION());
    }

    public static Localizable localizableWSS_1504_UNSUPPORTED_CALLBACK_TYPE() {
        return MESSAGE_FACTORY.getMessage("WSS1504.unsupported.callbackType");
    }

    /**
     * WSS1504: Unsupported Callback Type Encountered
     * 
     */
    public static String WSS_1504_UNSUPPORTED_CALLBACK_TYPE() {
        return LOCALIZER.localize(localizableWSS_1504_UNSUPPORTED_CALLBACK_TYPE());
    }

    public static Localizable localizableWSS_1538_ERROR_GETTING_PRIVATE_KEY() {
        return MESSAGE_FACTORY.getMessage("WSS1538.error.getting.privateKey");
    }

    /**
     * WSS1538: Exception during getting the private key
     * 
     */
    public static String WSS_1538_ERROR_GETTING_PRIVATE_KEY() {
        return LOCALIZER.localize(localizableWSS_1538_ERROR_GETTING_PRIVATE_KEY());
    }

    public static Localizable localizableWSS_1523_ERROR_GETTING_NEW_INSTANCE_CALLBACK_HANDLER() {
        return MESSAGE_FACTORY.getMessage("WSS1523.error.getting.newInstance.CallbackHandler");
    }

    /**
     * WSS1523: Error getting new instance of callback handler
     * 
     */
    public static String WSS_1523_ERROR_GETTING_NEW_INSTANCE_CALLBACK_HANDLER() {
        return LOCALIZER.localize(localizableWSS_1523_ERROR_GETTING_NEW_INSTANCE_CALLBACK_HANDLER());
    }

    public static Localizable localizableWSS_1502_UNSUPPORTED_DIGEST_AUTH() {
        return MESSAGE_FACTORY.getMessage("WSS1502.unsupported.digestAuth");
    }

    /**
     * WSS1502: Digest Authentication for Password Request is Not Supported
     * 
     */
    public static String WSS_1502_UNSUPPORTED_DIGEST_AUTH() {
        return LOCALIZER.localize(localizableWSS_1502_UNSUPPORTED_DIGEST_AUTH());
    }

    public static Localizable localizableWSS_1505_FAILEDTO_GETKEY() {
        return MESSAGE_FACTORY.getMessage("WSS1505.failedto.getkey");
    }

    /**
     * WSS1505: IO Exception occured: failed to get key/certificate from KeyStore (not necessarily i/o exception)
     * 
     */
    public static String WSS_1505_FAILEDTO_GETKEY() {
        return LOCALIZER.localize(localizableWSS_1505_FAILEDTO_GETKEY());
    }

    public static Localizable localizableWSS_1540_KEYSTORE_NOT_FOUND_CHECK_CONFIG() {
        return MESSAGE_FACTORY.getMessage("WSS1540.keystore.not.found.check.config");
    }

    /**
     * WSS1540: Could not locate KeyStore, check KeyStore assertion in WSIT configuration
     * 
     */
    public static String WSS_1540_KEYSTORE_NOT_FOUND_CHECK_CONFIG() {
        return LOCALIZER.localize(localizableWSS_1540_KEYSTORE_NOT_FOUND_CHECK_CONFIG());
    }

    public static Localizable localizableWSS_1522_ERROR_GETTING_LONG_VALUE() {
        return MESSAGE_FACTORY.getMessage("WSS1522.error.getting.longValue");
    }

    /**
     * WSS1522: Error getting long value
     * 
     */
    public static String WSS_1522_ERROR_GETTING_LONG_VALUE() {
        return LOCALIZER.localize(localizableWSS_1522_ERROR_GETTING_LONG_VALUE());
    }

    public static Localizable localizableWSS_1537_ERROR_TRUSTSTORE_USING_CALLBACK() {
        return MESSAGE_FACTORY.getMessage("WSS1537.error.truststore.using.callback");
    }

    /**
     * WSS1537: Exception during getting the TrustStore using truststore callback
     * 
     */
    public static String WSS_1537_ERROR_TRUSTSTORE_USING_CALLBACK() {
        return LOCALIZER.localize(localizableWSS_1537_ERROR_TRUSTSTORE_USING_CALLBACK());
    }

    public static Localizable localizableWSS_1516_ERROR_CREATION_AHEAD_CURRENT_TIME() {
        return MESSAGE_FACTORY.getMessage("WSS1516.error.creationAheadCurrent.time");
    }

    /**
     * WSS1516: The creation time is ahead of the current time
     * 
     */
    public static String WSS_1516_ERROR_CREATION_AHEAD_CURRENT_TIME() {
        return LOCALIZER.localize(localizableWSS_1516_ERROR_CREATION_AHEAD_CURRENT_TIME());
    }

    public static Localizable localizableWSS_1513_EXCEPTION_VALIDATE_TIMESTAMP() {
        return MESSAGE_FACTORY.getMessage("WSS1513.exception.validate.timestamp");
    }

    /**
     * WSS1513: Exception occured in Timestamp validation: An Error occurred while parsing UTC Timestamp into Date format.
     * 
     */
    public static String WSS_1513_EXCEPTION_VALIDATE_TIMESTAMP() {
        return LOCALIZER.localize(localizableWSS_1513_EXCEPTION_VALIDATE_TIMESTAMP());
    }

    public static Localizable localizableWSS_1503_UNSUPPORTED_REQUESTTYPE() {
        return MESSAGE_FACTORY.getMessage("WSS1503.unsupported.requesttype");
    }

    /**
     * WSS1503: Unsupported Request Type for Password Validation
     * 
     */
    public static String WSS_1503_UNSUPPORTED_REQUESTTYPE() {
        return LOCALIZER.localize(localizableWSS_1503_UNSUPPORTED_REQUESTTYPE());
    }

    public static Localizable localizableWSS_1512_FAILED_LOCATE_CERTIFICATE_PRIVATEKEY() {
        return MESSAGE_FACTORY.getMessage("WSS1512.failed.locate.certificate.privatekey");
    }

    /**
     * WSS1512: An Error occurred while locating default certificate and private key in KeyStore.
     * 
     */
    public static String WSS_1512_FAILED_LOCATE_CERTIFICATE_PRIVATEKEY() {
        return LOCALIZER.localize(localizableWSS_1512_FAILED_LOCATE_CERTIFICATE_PRIVATEKEY());
    }

    public static Localizable localizableWSS_1500_INVALID_USERNAME_HANDLER() {
        return MESSAGE_FACTORY.getMessage("WSS1500.invalid.usernameHandler");
    }

    /**
     * WSS1500: Username Handler Not Configured properly using Callback and is null. (not configured)
     * 
     */
    public static String WSS_1500_INVALID_USERNAME_HANDLER() {
        return LOCALIZER.localize(localizableWSS_1500_INVALID_USERNAME_HANDLER());
    }

    public static Localizable localizableWSS_1525_INVALID_PASSWORD_HANDLER() {
        return MESSAGE_FACTORY.getMessage("WSS1525.invalid.passwordHandler");
    }

    /**
     * WSS1525: Password Handler Not Configured properly using Callback and is null.(not configured)
     * 
     */
    public static String WSS_1525_INVALID_PASSWORD_HANDLER() {
        return LOCALIZER.localize(localizableWSS_1525_INVALID_PASSWORD_HANDLER());
    }

    public static Localizable localizableWSS_1511_FAILED_LOCATE_PEER_CERTIFICATE() {
        return MESSAGE_FACTORY.getMessage("WSS1511.failed.locate.peerCertificate");
    }

    /**
     * WSS1511: An Error occurred while locating PEER Entity certificate in TrustStore.
     * 
     */
    public static String WSS_1511_FAILED_LOCATE_PEER_CERTIFICATE() {
        return LOCALIZER.localize(localizableWSS_1511_FAILED_LOCATE_PEER_CERTIFICATE());
    }

    public static Localizable localizableWSS_1517_X_509_EXPIRED() {
        return MESSAGE_FACTORY.getMessage("WSS1517.X509.expired");
    }

    /**
     * WSS1517: X509Certificate Expired.
     * 
     */
    public static String WSS_1517_X_509_EXPIRED() {
        return LOCALIZER.localize(localizableWSS_1517_X_509_EXPIRED());
    }

    public static Localizable localizableWSS_1526_FAILEDTO_GETCERTIFICATE() {
        return MESSAGE_FACTORY.getMessage("WSS1526.failedto.getcertificate");
    }

    /**
     * WSS1526: IO Exception occurred: failed to get certificate from TrustStore
     * 
     */
    public static String WSS_1526_FAILEDTO_GETCERTIFICATE() {
        return LOCALIZER.localize(localizableWSS_1526_FAILEDTO_GETCERTIFICATE());
    }

    public static Localizable localizableWSS_1534_NO_KEYSTORE_SET_IN_KEYSTORECALLBACK_CALLBACKHANDLER() {
        return MESSAGE_FACTORY.getMessage("WSS1534.no.keystore.set.in.keystorecallback.callbackhandler");
    }

    /**
     * WSS1534: No KeyStore set in KeyStorCallback  by CallbackHandler
     * 
     */
    public static String WSS_1534_NO_KEYSTORE_SET_IN_KEYSTORECALLBACK_CALLBACKHANDLER() {
        return LOCALIZER.localize(localizableWSS_1534_NO_KEYSTORE_SET_IN_KEYSTORECALLBACK_CALLBACKHANDLER());
    }

    public static Localizable localizableWSS_1507_NO_SAML_CALLBACK_HANDLER() {
        return MESSAGE_FACTORY.getMessage("WSS1507.no.SAMLCallbackHandler");
    }

    /**
     * WSS1507: A Required SAML Callback Handler was not specified in configuration : Cannot Populate SAML Assertion
     * 
     */
    public static String WSS_1507_NO_SAML_CALLBACK_HANDLER() {
        return LOCALIZER.localize(localizableWSS_1507_NO_SAML_CALLBACK_HANDLER());
    }

    public static Localizable localizableWSS_1514_ERROR_AHEAD_CURRENT_TIME() {
        return MESSAGE_FACTORY.getMessage("WSS1514.error.aheadCurrentTime");
    }

    /**
     * WSS1514: The current time is ahead of the expiration time in Timestamp"
     * 
     */
    public static String WSS_1514_ERROR_AHEAD_CURRENT_TIME() {
        return LOCALIZER.localize(localizableWSS_1514_ERROR_AHEAD_CURRENT_TIME());
    }

    public static Localizable localizableWSS_1527_X_509_NOT_VALID() {
        return MESSAGE_FACTORY.getMessage("WSS1527.X509.notValid");
    }

    /**
     * WSS1527: X509Certificate's Validity Failed.
     * 
     */
    public static String WSS_1527_X_509_NOT_VALID() {
        return LOCALIZER.localize(localizableWSS_1527_X_509_NOT_VALID());
    }

    public static Localizable localizableWSS_1529_EXCEPTION_IN_CERTSTORE_CALLBACK() {
        return MESSAGE_FACTORY.getMessage("WSS1529.exception.in.certstore.callback");
    }

    /**
     * WSS1529: Exception in CertStoreCallback 
     * 
     */
    public static String WSS_1529_EXCEPTION_IN_CERTSTORE_CALLBACK() {
        return LOCALIZER.localize(localizableWSS_1529_EXCEPTION_IN_CERTSTORE_CALLBACK());
    }

    public static Localizable localizableWSS_1501_NO_PASSWORD_VALIDATOR() {
        return MESSAGE_FACTORY.getMessage("WSS1501.no.password.validator");
    }

    /**
     * WSS1501: Password Validator Not Specified in Configuration
     * 
     */
    public static String WSS_1501_NO_PASSWORD_VALIDATOR() {
        return LOCALIZER.localize(localizableWSS_1501_NO_PASSWORD_VALIDATOR());
    }

    public static Localizable localizableWSS_1506_INVALID_SAML_POLICY() {
        return MESSAGE_FACTORY.getMessage("WSS1506.invalid.SAMLPolicy");
    }

    /**
     * WSS1506: SAML Assertion not present in the Policy.
     * 
     */
    public static String WSS_1506_INVALID_SAML_POLICY() {
        return LOCALIZER.localize(localizableWSS_1506_INVALID_SAML_POLICY());
    }

    public static Localizable localizableWSS_1530_EXCEPTION_IN_CERTSTORE_LOOKUP() {
        return MESSAGE_FACTORY.getMessage("WSS1530.exception.in.certstore.lookup");
    }

    /**
     * WSS1530: Exception occurred while looking up the CertStore
     * 
     */
    public static String WSS_1530_EXCEPTION_IN_CERTSTORE_LOOKUP() {
        return LOCALIZER.localize(localizableWSS_1530_EXCEPTION_IN_CERTSTORE_LOOKUP());
    }

    public static Localizable localizableWSS_1536_NO_TRUSTSTORE_SET_IN_TRUSTSTORECALLBACK() {
        return MESSAGE_FACTORY.getMessage("WSS1536.no.truststore.set.in.truststorecallback");
    }

    /**
     * WSS1536:No TrustStore set in TrustStorCallback  by CallbackHandler
     * 
     */
    public static String WSS_1536_NO_TRUSTSTORE_SET_IN_TRUSTSTORECALLBACK() {
        return LOCALIZER.localize(localizableWSS_1536_NO_TRUSTSTORE_SET_IN_TRUSTSTORECALLBACK());
    }

    public static Localizable localizableWSS_1533_X_509_SELF_SIGNED_CERTIFICATE_NOT_VALID() {
        return MESSAGE_FACTORY.getMessage("WSS1533.X509.SelfSignedCertificate.notValid");
    }

    /**
     * WSS1533: Validation of self signed certificate failed.
     * 
     */
    public static String WSS_1533_X_509_SELF_SIGNED_CERTIFICATE_NOT_VALID() {
        return LOCALIZER.localize(localizableWSS_1533_X_509_SELF_SIGNED_CERTIFICATE_NOT_VALID());
    }

    public static Localizable localizableWSS_1510_FAILED_INIT_KEYSTORE() {
        return MESSAGE_FACTORY.getMessage("WSS1510.failed.init.keystore");
    }

    /**
     * WSS1510: Failed to initialize KeyStore
     * 
     */
    public static String WSS_1510_FAILED_INIT_KEYSTORE() {
        return LOCALIZER.localize(localizableWSS_1510_FAILED_INIT_KEYSTORE());
    }

    public static Localizable localizableWSS_1528_FAILED_INITIALIZE_KEY_PASSWORD() {
        return MESSAGE_FACTORY.getMessage("WSS1528.failed.initialize.key.password");
    }

    /**
     * WSS1528: An Error occurred while obtaining Key Password of the KeyStore.
     * 
     */
    public static String WSS_1528_FAILED_INITIALIZE_KEY_PASSWORD() {
        return LOCALIZER.localize(localizableWSS_1528_FAILED_INITIALIZE_KEY_PASSWORD());
    }

    public static Localizable localizableWSS_1541_TRUSTSTORE_NOT_FOUND_CHECK_CONFIG() {
        return MESSAGE_FACTORY.getMessage("WSS1541.truststore.not.found.check.config");
    }

    /**
     * WSS1541: Could not locate TrustStore, check TrustStore assertion in WSIT configuration
     * 
     */
    public static String WSS_1541_TRUSTSTORE_NOT_FOUND_CHECK_CONFIG() {
        return LOCALIZER.localize(localizableWSS_1541_TRUSTSTORE_NOT_FOUND_CHECK_CONFIG());
    }

    public static Localizable localizableWSS_1535_ERROR_KEYSTORE_USING_CALLBACK() {
        return MESSAGE_FACTORY.getMessage("WSS1535.error.keystore.using.callback");
    }

    /**
     * WSS1535: Exception during getting the KeyStore using keystore callback
     * 
     */
    public static String WSS_1535_ERROR_KEYSTORE_USING_CALLBACK() {
        return LOCALIZER.localize(localizableWSS_1535_ERROR_KEYSTORE_USING_CALLBACK());
    }

    public static Localizable localizableWSS_1515_ERROR_CURRENT_TIME() {
        return MESSAGE_FACTORY.getMessage("WSS1515.error.currentTime");
    }

    /**
     * WSS1515: The creation time is older than currenttime - timestamp-freshness-limit - max-clock-skew"
     * 
     */
    public static String WSS_1515_ERROR_CURRENT_TIME() {
        return LOCALIZER.localize(localizableWSS_1515_ERROR_CURRENT_TIME());
    }

    private static class BundleSupplier
        implements ResourceBundleSupplier
    {


        public ResourceBundle getResourceBundle(Locale locale) {
            return ResourceBundle.getBundle(BUNDLE_NAME, locale);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy