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 protected
SecureRandomProvider()
protected
SecureRandomProvider(java.lang.String algorithm, java.lang.String provider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fill(byte[] bytes)
Fill the array of bytes with random values.void
fill(byte[] bytes, int start, int len)
Fill part of bytes with random values.private static java.security.SecureRandom
newRandom()
private static java.security.SecureRandom
newRandom(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:Random
Fill part of bytes with random values.
-
-