Class Crypto
java.lang.Object
org.apache.commons.crypto.Crypto
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe prefix of all crypto configuration keys.static final StringThe configuration key of the file name for loading crypto library.static final StringThe configuration key of the path for loading crypto library.static final StringThe configuration key of temp directory for extracting crypto library. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the component version of Apache Commons Crypto.static StringGets the component version of Apache Commons Crypto.static ThrowableThe loading error throwable, if loading failed.static booleanChecks whether the native code has been successfully loaded for the platform.static voidThe Main of Crypto.
-
Field Details
-
CONF_PREFIX
-
LIB_NAME_KEY
The configuration key of the file name for loading crypto library.- See Also:
-
LIB_PATH_KEY
The configuration key of the path for loading crypto library.- See Also:
-
LIB_TEMPDIR_KEY
The configuration key of temp directory for extracting crypto library. Defaults to "java.io.tempdir" if not found.- See Also:
-
-
Constructor Details
-
Crypto
public Crypto()
-
-
Method Details
-
getComponentName
Gets the component version of Apache Commons Crypto.This implementation relies on the VERSION properties file which must be set up with the correct contents by the build process. This is done automatically by Maven.
- Returns:
- the version; may be null if not found
-
getComponentVersion
Gets the component version of Apache Commons Crypto.This implementation relies on the VERSION properties file which must be set up with the correct contents by the build process. This is done automatically by Maven.
- Returns:
- the version; may be null if not found
-
getLoadingError
The loading error throwable, if loading failed.- Returns:
- null, unless loading failed.
-
isNativeCodeLoaded
Checks whether the native code has been successfully loaded for the platform.- Returns:
- true if the native code has been loaded successfully.
-
main
-