Class BouncyCastleRandomFactory
- java.lang.Object
-
- org.apache.sshd.common.random.AbstractRandomFactory
-
- org.apache.sshd.common.util.security.bouncycastle.BouncyCastleRandomFactory
-
- All Implemented Interfaces:
java.util.function.Supplier<Random>
,BuiltinFactory<Random>
,Factory<Random>
,NamedFactory<Random>
,NamedResource
,OptionalFeature
,RandomFactory
public final class BouncyCastleRandomFactory extends AbstractRandomFactory
Named factory for the BouncyCastleRandom
-
-
Field Summary
Fields Modifier and Type Field Description static BouncyCastleRandomFactory
INSTANCE
static java.lang.String
NAME
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Fields inherited from interface org.apache.sshd.common.OptionalFeature
FALSE, TRUE
-
-
Constructor Summary
Constructors Constructor Description BouncyCastleRandomFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Random
create()
boolean
isSupported()
-
Methods inherited from class org.apache.sshd.common.random.AbstractRandomFactory
getName, toString
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static final BouncyCastleRandomFactory INSTANCE
-
-
Method Detail
-
isSupported
public boolean isSupported()
-
create
public Random create()
- Returns:
- A new instance
-
-