Package ch.qos.logback.core.net.ssl
Class SecureRandomFactoryBean
- java.lang.Object
-
- ch.qos.logback.core.net.ssl.SecureRandomFactoryBean
-
@Deprecated(since="2022-01-27") public class SecureRandomFactoryBean extends java.lang.Object
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.A factory bean for a JCASecureRandom
generator.This object holds the configurable properties of a secure random generator and uses them to create and load a
SecureRandom
instance.
-
-
Constructor Summary
Constructors Constructor Description SecureRandomFactoryBean()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.security.SecureRandom
createSecureRandom()
Deprecated.Creates a newSecureRandom
generator using the receiver's configuration.java.lang.String
getAlgorithm()
Deprecated.Gets the secure random generator algorithm name.java.lang.String
getProvider()
Deprecated.Gets the JCA provider name for the secure random generator.void
setAlgorithm(java.lang.String algorithm)
Deprecated.Sets the secure random generator algorithm name.void
setProvider(java.lang.String provider)
Deprecated.Sets the JCA provider name for the secure random generator.
-
-
-
Method Detail
-
createSecureRandom
public java.security.SecureRandom createSecureRandom() throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException
Deprecated.Creates a newSecureRandom
generator using the receiver's configuration.- Returns:
- secure random generator instance
- Throws:
java.security.NoSuchProviderException
- if the provider name specified bysetProvider(String)
is not known to the platformjava.security.NoSuchAlgorithmException
- if the algorithm name specified bysetAlgorithm(String)
is not recognized by the specified provider (or the platform's default provider if the provider isn't specified)
-
getAlgorithm
public java.lang.String getAlgorithm()
Deprecated.Gets the secure random generator algorithm name.- Returns:
- an algorithm name (e.g.
SHA1PRNG
); theSSL.DEFAULT_SECURE_RANDOM_ALGORITHM
is returned if no algorithm has been specified
-
setAlgorithm
public void setAlgorithm(java.lang.String algorithm)
Deprecated.Sets the secure random generator algorithm name.- Parameters:
algorithm
- an algorithm name, which must be recognized by the provider specified viasetProvider(String)
or by the platform's default provider if no provider is specified.
-
getProvider
public java.lang.String getProvider()
Deprecated.Gets the JCA provider name for the secure random generator.- Returns:
- provider name
-
setProvider
public void setProvider(java.lang.String provider)
Deprecated.Sets the JCA provider name for the secure random generator.- Parameters:
provider
- name of the JCA provider to utilize in creating the secure random generator
-
-