Package com.helger.phase4.crypto
Class AS4TrustStoreDescriptor
java.lang.Object
com.helger.phase4.crypto.AS4TrustStoreDescriptor
A specific helper for
TrustStoreDescriptor- Since:
- 3.0.0
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.helger.security.keystore.TrustStoreDescriptorCreate the trust store descriptor from the default configuration item.static com.helger.security.keystore.TrustStoreDescriptorcreateFromConfig(com.helger.config.fallback.IConfigWithFallback aConfig, String sConfigPrefix, Provider aProvider) Create the trust store descriptor from the provided configuration item.
-
Method Details
-
createFromConfig
Create the trust store descriptor from the default configuration item. The following configuration properties are used, relative to the default configuration prefix:truststore.type- the trust store typetruststore.file- the trust store pathtruststore.password- the trust store password
- Returns:
- A new
TrustStoreDescriptorobject ornullif path or password are not present.
-
createFromConfig
@Nullable public static com.helger.security.keystore.TrustStoreDescriptor createFromConfig(@Nonnull com.helger.config.fallback.IConfigWithFallback aConfig, @Nonnull @Nonempty String sConfigPrefix, @Nullable Provider aProvider) Create the trust store descriptor from the provided configuration item. The following configuration properties are used, relative to the configuration prefix:truststore.type- the trust store typetruststore.file- the trust store pathtruststore.password- the trust store 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 trust store. May benullto use the default.- Returns:
- A new
TrustStoreDescriptorobject ornullif path or password are not present.
-