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 int
Default provider to use.static final String
Library 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.
-