public class SecureRandomBean extends Object
SecureRandomBean builds a SecureRandom from the given algorithm and
provider. If nothing is set the default SecureRandom object with the default algorithm
will be build.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALGORITHM
The Constant DEFAULT_ALGORITHM.
|
| Modifier and Type | Method and Description |
|---|---|
SecureRandomBean |
algorithm(String algorithm)
Sets the algorithm.
|
SecureRandom |
build()
Builds a
SecureRandom from the given algorithm and provider. |
static SecureRandomBean |
builder()
Gets an instance of
SecureRandomBean for build a SecureRandom object. |
SecureRandom |
buildQueitly()
Builds a
SecureRandom from the given algorithm and provider. |
SecureRandomBean |
provider(String provider)
Sets the provider.
|
public static final String DEFAULT_ALGORITHM
public static SecureRandomBean builder()
SecureRandomBean for build a SecureRandom object.SecureRandomBeanpublic SecureRandomBean algorithm(@NonNull String algorithm)
algorithm - the algorithmSecureRandomBean object. For chaining.public SecureRandom build() throws NoSuchAlgorithmException, NoSuchProviderException
SecureRandom from the given algorithm and provider. If nothing is set the
default SecureRandom object with the default algorithm will be build.SecureRandom objectNoSuchAlgorithmException - is thrown if a SecureRandomSpi implementation for the specified algorithm is not
available from the specified provider.NoSuchProviderException - is thrown if the specified provider is not registered in the security provider
list.public SecureRandom buildQueitly()
SecureRandom from the given algorithm and provider. If nothing is set the
default SecureRandom object with the default algorithm will be build.SecureRandom objectpublic SecureRandomBean provider(@NonNull String provider)
provider - the providerSecureRandomBean object. For chaining.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.