Package org.opensaml.xmlsec.config.impl
Class DefaultSecurityConfigurationBootstrap
java.lang.Object
org.opensaml.xmlsec.config.impl.DefaultSecurityConfigurationBootstrap
A utility class which programmatically builds basic instances of various components
related to security configuration which have reasonable default values for their
various configuration parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfig property value for default KDF: ConcatKDF.static final StringConfig property name for ECDH default Key Derivation Function (KDF).private static final org.slf4j.LoggerLogger.static final StringConfig property value for default KDF: PBKDF2. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static EncryptedKeyResolverBuild a basic instance ofEncryptedKeyResolver.static KeyInfoCredentialResolverBuild a basic instance ofKeyInfoCredentialResolver.static NamedKeyInfoGeneratorManagerBuild a basicNamedKeyInfoGeneratorManager.protected static NamedKeyInfoGeneratorManagerBuild a basicNamedKeyInfoGeneratorManagerfor use when generating anEncryptedData.static BasicDecryptionConfigurationBuild and return a default decryption configuration.static BasicEncryptionConfigurationBuild and return a default encryption configuration.Build and return a default signature signing configuration.Build and return a default signature validation configuration.protected static Map<String,KeyAgreementEncryptionConfiguration> Build key agreement configurations.protected static NamedKeyInfoGeneratorManagerBuild a basicNamedKeyInfoGeneratorManagerfor use when generating anEncryptedKey.protected static NamedKeyInfoGeneratorManagerBuild a basicNamedKeyInfoGeneratorManagerfor use when generating anSignature.
-
Field Details
-
CONFIG_PROPERTY_ECDH_DEFAULT_KDF
Config property name for ECDH default Key Derivation Function (KDF).- See Also:
-
CONCATKDF
Config property value for default KDF: ConcatKDF.- See Also:
-
PBKDF2
Config property value for default KDF: PBKDF2.- See Also:
-
LOG
@Nonnull private static final org.slf4j.Logger LOGLogger.
-
-
Constructor Details
-
DefaultSecurityConfigurationBootstrap
protected DefaultSecurityConfigurationBootstrap()Constructor.
-
-
Method Details
-
buildDefaultEncryptionConfiguration
Build and return a default encryption configuration.- Returns:
- a new basic configuration with reasonable default values
-
buildKeyAgreementConfigurations
@Nonnull protected static Map<String,KeyAgreementEncryptionConfiguration> buildKeyAgreementConfigurations()Build key agreement configurations.- Returns:
- key agreement configurations.
-
buildDefaultDecryptionConfiguration
Build and return a default decryption configuration.- Returns:
- a new basic configuration with reasonable default values
-
buildDefaultSignatureSigningConfiguration
@Nonnull public static BasicSignatureSigningConfiguration buildDefaultSignatureSigningConfiguration()Build and return a default signature signing configuration.- Returns:
- a new basic configuration with reasonable default values
-
buildDefaultSignatureValidationConfiguration
@Nonnull public static BasicSignatureValidationConfiguration buildDefaultSignatureValidationConfiguration()Build and return a default signature validation configuration.- Returns:
- a new basic configuration with reasonable default values
-
buildBasicEncryptedKeyResolver
Build a basic instance ofEncryptedKeyResolver.- Returns:
- an EncryptedKey resolver instance
-
buildBasicInlineKeyInfoCredentialResolver
Build a basic instance ofKeyInfoCredentialResolver.- Returns:
- a KeyInfo credential resolver instance
-
buildDataEncryptionKeyInfoGeneratorManager
Build a basicNamedKeyInfoGeneratorManagerfor use when generating anEncryptedData.- Returns:
- a named KeyInfo generator manager instance
-
buildKeyTransportEncryptionKeyInfoGeneratorManager
@Nonnull protected static NamedKeyInfoGeneratorManager buildKeyTransportEncryptionKeyInfoGeneratorManager()Build a basicNamedKeyInfoGeneratorManagerfor use when generating anEncryptedKey.- Returns:
- a named KeyInfo generator manager instance
-
buildSignatureKeyInfoGeneratorManager
Build a basicNamedKeyInfoGeneratorManagerfor use when generating anSignature.- Returns:
- a named KeyInfo generator manager instance
-
buildBasicKeyInfoGeneratorManager
Build a basicNamedKeyInfoGeneratorManager.- Returns:
- a named KeyInfo generator manager instance
-