Class LoadedKey<T extends KeyStore.Entry>

  • Type Parameters:
    T - The key store entry type loaded.
    All Implemented Interfaces:
    com.helger.commons.state.ISuccessIndicator

    public class LoadedKey<T extends KeyStore.Entry>
    extends Object
    implements com.helger.commons.state.ISuccessIndicator
    This class contains the result of loading the configured private key as configured in the configuration file.
    Author:
    Philip Helger
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Specified by:
        isSuccess in interface com.helger.commons.state.ISuccessIndicator
      • getKeyEntry

        @Nullable
        public T getKeyEntry()
        Returns:
        The loaded key entry. Never null in case of success. Always null in case of failure.
      • getError

        @Nullable
        public EKeyStoreLoadError getError()
        Returns:
        The error code. Never null in case of failure. Always null in case of success.
      • getErrorParams

        @Nullable
        public String[] getErrorParams()
        Returns:
        The error parameters. Never null in case of failure. Always null in case of success.
      • getErrorText

        @Nullable
        public String getErrorText​(@Nonnull
                                   Locale aContentLocale)
        Get the error text
        Parameters:
        aContentLocale - The locale to use. May not be null.
        Returns:
        null if no error occurred, the error text otherwise.