Package jadex.ipc.impl.security
Class WindowsEntropyApi
java.lang.Object
jadex.ipc.impl.security.WindowsEntropyApi
Access to windows cryptographically secure entropy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault provider to use.static final StringLibrary name used to access the API -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]getEntropy(int numbytes) Gets random numbers from Windows API.
-
Field Details
-
WIN_LIB_NAME
Library name used to access the API- See Also:
-
PROV_RSA_FULL
public static final int PROV_RSA_FULLDefault provider to use.- See Also:
-
-
Constructor Details
-
WindowsEntropyApi
public WindowsEntropyApi()
-
-
Method Details
-
getEntropy
public static byte[] getEntropy(int numbytes) Gets random numbers from Windows API.- Parameters:
numBytes- Number of bytes requested.- Returns:
- Random data, null on failure.
-