Package com.helger.phase4.crypto
Class AS4KeyStoreDescriptor
java.lang.Object
com.helger.phase4.crypto.AS4KeyStoreDescriptor
A specific helper for
KeyStoreAndKeyDescriptor- Since:
- 3.0.0
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable com.helger.security.keystore.KeyStoreAndKeyDescriptorCreate the key store descriptor from the default configuration item.static @Nullable com.helger.security.keystore.KeyStoreAndKeyDescriptorcreateFromConfig(@NonNull com.helger.config.fallback.IConfigWithFallback aConfig, @NonNull @Nonempty String sConfigPrefix, @Nullable Provider aProvider) Create the key store descriptor from the provided configuration item.
-
Method Details
-
createFromConfig
public static @Nullable com.helger.security.keystore.KeyStoreAndKeyDescriptor createFromConfig()Create the key store descriptor from the default configuration item. The following configuration properties are used, relative to the default configuration prefix:keystore.type- the key store typekeystore.file- the key store pathkeystore.password- the key store passwordkeystore.alias- the key store aliaskeystore.private.password- the key store key password
- Returns:
- A new
KeyStoreAndKeyDescriptorobject ornullif a mandatory element is missing.
-
createFromConfig
public static @Nullable com.helger.security.keystore.KeyStoreAndKeyDescriptor createFromConfig(@NonNull com.helger.config.fallback.IConfigWithFallback aConfig, @Nonempty @NonNull @Nonempty String sConfigPrefix, @Nullable Provider aProvider) Create the key store descriptor from the provided configuration item. The following configuration properties are used, relative to the configuration prefix:keystore.type- the key store typekeystore.file- the key store pathkeystore.password- the key store passwordkeystore.alias- the key store aliaskeystore.private.password- the key store key password
- Parameters:
aConfig- The configuration object to be used. May not benull.sConfigPrefix- The configuration prefix to be used. May neither benullnor empty and must end with a dot ('.').aProvider- The Java security provider for loading the key store. May benullto use the default.- Returns:
- A new
KeyStoreAndKeyDescriptorobject ornullif a mandatory element is missing.
-