Class AS4KeyStoreDescriptor

java.lang.Object
com.helger.phase4.crypto.AS4KeyStoreDescriptor

@Immutable public final class AS4KeyStoreDescriptor extends Object
A specific helper for KeyStoreAndKeyDescriptor
Since:
3.0.0
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.helger.security.keystore.KeyStoreAndKeyDescriptor
    Create the key store descriptor from the default configuration item.
    static com.helger.security.keystore.KeyStoreAndKeyDescriptor
    createFromConfig(com.helger.config.fallback.IConfigWithFallback aConfig, String sConfigPrefix, Provider aProvider)
    Create the key store descriptor from the provided configuration item.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createFromConfig

      @Nullable public static 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 type
      • keystore.file - the key store path
      • keystore.password - the key store password
      • keystore.alias - the key store alias
      • keystore.private.password - the key store key password
      Returns:
      A new KeyStoreAndKeyDescriptor object or null if a mandatory element is missing.
    • createFromConfig

      @Nullable public static com.helger.security.keystore.KeyStoreAndKeyDescriptor createFromConfig(@Nonnull com.helger.config.fallback.IConfigWithFallback aConfig, @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 type
      • keystore.file - the key store path
      • keystore.password - the key store password
      • keystore.alias - the key store alias
      • keystore.private.password - the key store key password
      Parameters:
      aConfig - The configuration object to be used. May not be null.
      sConfigPrefix - The configuration prefix to be used. May neither be null nor empty and must end with a dot ('.').
      aProvider - The Java security provider for loading the key store. May be null to use the default.
      Returns:
      A new KeyStoreAndKeyDescriptor object or null if a mandatory element is missing.