Package org.opensaml.xmlsec.config.impl
Class JavaCryptoValidationInitializer
java.lang.Object
org.opensaml.xmlsec.config.impl.JavaCryptoValidationInitializer
- All Implemented Interfaces:
Initializer
An initializer which validates the Java Cryptographic Architecture environment is usable.
Validates that the set of security providers configured in the JVM supports required cryptographic capabilities, for example for the XML Encryption and XML Signature specifications.
Depending on the requirements of the calling code, failure to fully support encryption and signature requirements
may or may not be significant. A configuration property opensaml.config.xmlsec.cryptoValidationIsFatal
is supplied to allow the environment to determine whether an invalid result is fatal or not. The default
value of this flag is false
. If any case, a warning is logged.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Configuration property determining whether invalid result is fatal or not.private org.slf4j.Logger
Logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Perform the initialization process encompassed by the implementation.
-
Field Details
-
CONFIG_PROPERTY_FAIL_IS_FATAL
Configuration property determining whether invalid result is fatal or not.- See Also:
-
log
private org.slf4j.Logger logLogger.
-
-
Constructor Details
-
JavaCryptoValidationInitializer
public JavaCryptoValidationInitializer()
-
-
Method Details
-
init
Perform the initialization process encompassed by the implementation.- Specified by:
init
in interfaceInitializer
- Throws:
InitializationException
- if initialization could not be completed successfully
-