Package com.helger.security.keystore
Class LoadedKeyStore
- java.lang.Object
-
- com.helger.security.keystore.LoadedKeyStore
-
- All Implemented Interfaces:
com.helger.commons.state.ISuccessIndicator
public class LoadedKeyStore extends Object implements com.helger.commons.state.ISuccessIndicator
This class contains the result of loading a key store from e.g. a configuration file.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description LoadedKeyStore(KeyStore aKeyStore, 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 textKeyStoregetKeyStore()booleanisSuccess()StringtoString()
-
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccessin interfacecom.helger.commons.state.ISuccessIndicator
-
getKeyStore
@Nullable public KeyStore getKeyStore()
- Returns:
- The loaded key store. 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.
-
-