Package ch.qos.logback.core.net.ssl
Class KeyStoreFactoryBean
- java.lang.Object
-
- ch.qos.logback.core.net.ssl.KeyStoreFactoryBean
-
@Deprecated(since="2022-01-27") public class KeyStoreFactoryBean extends java.lang.Object
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.A factory bean for a JCAKeyStore
.This object holds the configurable properties of a key store and uses them to create and load a
KeyStore
instance.
-
-
Constructor Summary
Constructors Constructor Description KeyStoreFactoryBean()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.security.KeyStore
createKeyStore()
Deprecated.Creates a newKeyStore
using the receiver's configuration.java.lang.String
getLocation()
Deprecated.Gets the location of the key store resource.java.lang.String
getPassword()
Deprecated.Gets the password to use to access the key store.java.lang.String
getProvider()
Deprecated.Gets the JCA key store provider name.java.lang.String
getType()
Deprecated.Gets the type of key store to load.void
setLocation(java.lang.String location)
Deprecated.Sets the location of the key store resource.void
setPassword(java.lang.String password)
Deprecated.Sets the password to use to access the keystore.void
setProvider(java.lang.String provider)
Deprecated.Sets the JCA key store provider name.void
setType(java.lang.String type)
Deprecated.Sets the type of key store to load.
-
-
-
Method Detail
-
createKeyStore
public java.security.KeyStore createKeyStore() throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.KeyStoreException
Deprecated.Creates a newKeyStore
using the receiver's configuration.- Returns:
- key store
- Throws:
java.security.NoSuchProviderException
- if the provider specified bysetProvider(String)
is not known to the platformjava.security.NoSuchAlgorithmException
- if the key store type specified bysetType(String)
is not known to the specified provider (or the platform's default provider if the provider isn't specified)java.security.KeyStoreException
- if some other error occurs in loading the key store from the resource specified bysetLocation(String)
-
getLocation
public java.lang.String getLocation()
Deprecated.Gets the location of the key store resource.- Returns:
- a String containing a URL for the resource
-
setLocation
public void setLocation(java.lang.String location)
Deprecated.Sets the location of the key store resource.- Parameters:
location
- a String containing a URL for the resource; if the URL string isn't prefixed by a scheme, the path is assumed to be relative to the root of the classpath.
-
getType
public java.lang.String getType()
Deprecated.Gets the type of key store to load.- Returns:
- a key store type name (e.g.
JKS
); theSSL.DEFAULT_KEYSTORE_TYPE
is returned if no type has been configured
-
setType
public void setType(java.lang.String type)
Deprecated.Sets the type of key store to load.- Parameters:
type
- a key store type name (e.g.JKS
,PKCS12
); the type specified must be supported by the provider specified bysetProvider(String)
or by the platform's default provider if no provider is specified
-
getProvider
public java.lang.String getProvider()
Deprecated.Gets the JCA key store provider name.- Returns:
- provider name or
null
if no provider has been configured
-
setProvider
public void setProvider(java.lang.String provider)
Deprecated.Sets the JCA key store provider name.- Parameters:
provider
- name of the JCA provider to utilize in creating the key store
-
getPassword
public java.lang.String getPassword()
Deprecated.Gets the password to use to access the key store.- Returns:
- password string; the
SSL.DEFAULT_KEYSTORE_PASSWORD
is returned if no password has been configured
-
setPassword
public void setPassword(java.lang.String password)
Deprecated.Sets the password to use to access the keystore.- Parameters:
password
- the password to set
-
-