Package com.helger.security.keystore
Class LoadedKey<T extends KeyStore.Entry>
- java.lang.Object
-
- com.helger.security.keystore.LoadedKey<T>
-
- 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
-
-
Constructor Summary
Constructors Constructor Description LoadedKey(T aKeyEntry, EKeyStoreLoadError eError, String... aErrorParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EKeyStoreLoadErrorgetError()String[]getErrorParams()StringgetErrorText(Locale aContentLocale)Get the error textTgetKeyEntry()booleanisSuccess()StringtoString()
-
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccessin interfacecom.helger.commons.state.ISuccessIndicator
-
getKeyEntry
@Nullable public T getKeyEntry()
- Returns:
- The loaded key entry. Never
nullin case of success. Alwaysnullin case of failure.
-
getError
@Nullable public EKeyStoreLoadError getError()
- Returns:
- The error code. Never
nullin case of failure. Alwaysnullin case of success.
-
getErrorParams
@Nullable public String[] getErrorParams()
- Returns:
- The error parameters. Never
nullin case of failure. Alwaysnullin case of success.
-
getErrorText
@Nullable public String getErrorText(@Nonnull Locale aContentLocale)
Get the error text- Parameters:
aContentLocale- The locale to use. May not benull.- Returns:
nullif no error occurred, the error text otherwise.
-
-