Class SecureRandomProvider
- java.lang.Object
-
- net.schmizz.sshj.transport.random.SecureRandomProvider
-
- All Implemented Interfaces:
Random
- Direct Known Subclasses:
BouncyCastleFipsRandom,BouncyCastleRandom,JCERandom
public class SecureRandomProvider extends java.lang.Object implements Random
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSecureRandomProvider()protectedSecureRandomProvider(java.lang.String algorithm, java.lang.String provider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfill(byte[] bytes)Fill the array of bytes with random values.voidfill(byte[] bytes, int start, int len)Fill part of bytes with random values.private static java.security.SecureRandomnewRandom()private static java.security.SecureRandomnewRandom(java.lang.String algorithm, java.lang.String provider)
-
-
-
Method Detail
-
newRandom
private static java.security.SecureRandom newRandom()
-
newRandom
private static java.security.SecureRandom newRandom(java.lang.String algorithm, java.lang.String provider)
-
fill
public void fill(byte[] bytes, int start, int len)Description copied from interface:RandomFill part of bytes with random values.
-
-