Class PkiCredentialFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<PkiCredential>
se.swedenconnect.security.credential.spring.factory.PkiCredentialFactoryBean
se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<PkiCredential>
,InitializingBean
@Deprecated(since="2.0.0",
forRemoval=true)
public class PkiCredentialFactoryBean
extends PkiCredentialFactoryBean
Deprecated, for removal: This API element is subject to removal in a future version.
A utility factory that can create any type of
PkiCredential
.
This implementation will be removed in future releases. Consider using PkiCredentialFactory
or
PkiCredentialFactoryBean
instead.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Default constructor.Deprecated, for removal: This API element is subject to removal in a future version.Constructor that initializes the factory from the supplied credential configuration properties object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.protected PkiCredential
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the keystore alias to the entry holding the key pair.void
setCertificate
(Resource certificate) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the resource holding the certificate part of the credential (optional since the certificate may be part of a keystore).void
setCertificates
(List<Resource> certificates) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the list of resources holding the certificate chain that part of the credential (optional since the certificate may be part of a keystore).void
setKeyPassword
(char[] keyPassword) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the password to unlock the private key from the keystore.void
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the name of the credential.void
setPassword
(char[] password) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the keystore password.void
setPin
(char[] pin) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the PIN.void
setPkcs11Configuration
(String pkcs11Configuration) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the PKCS#11 configuration file to use.void
setPrivateKey
(Resource privateKey) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the resource holding the private key part of the credential (optional since the key may be part of a keystore).void
setProvider
(String provider) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the name of the security provider to use when creating the KeyStore instance.void
setResource
(Resource resource) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the resource to the keystore containing the credential.void
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the type of keystore.Methods inherited from class se.swedenconnect.security.credential.spring.factory.PkiCredentialFactoryBean
getConfiguration, getObjectType, setCredentialBundles, setCredentialProvider, setKeyStoreProvider, setKeyStoreReloaderProvider
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
PkiCredentialFactoryBean
public PkiCredentialFactoryBean()Deprecated, for removal: This API element is subject to removal in a future version.Default constructor. -
PkiCredentialFactoryBean
Deprecated, for removal: This API element is subject to removal in a future version.Constructor that initializes the factory from the supplied credential configuration properties object.- Parameters:
properties
- credential configuration properties
-
-
Method Details
-
createInstance
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createInstance
in classPkiCredentialFactoryBean
- Throws:
Exception
-
setName
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the name of the credential.- Parameters:
name
- the credential name
-
setCertificate
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the resource holding the certificate part of the credential (optional since the certificate may be part of a keystore).- Parameters:
certificate
- certificate resource
-
setCertificates
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the list of resources holding the certificate chain that part of the credential (optional since the certificate may be part of a keystore). If used, the entity certificate must be the first element.- Parameters:
certificates
- a list of certificate resources
-
setPrivateKey
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the resource holding the private key part of the credential (optional since the key may be part of a keystore).- Parameters:
privateKey
- private key resource
-
setResource
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the resource to the keystore containing the credential.- Parameters:
resource
- the keystore resource
-
setPassword
public void setPassword(char[] password) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the keystore password.- Parameters:
password
- keystore password
-
setType
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the type of keystore.- Parameters:
type
- the keystore type
-
setProvider
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the name of the security provider to use when creating the KeyStore instance.- Parameters:
provider
- security provider name
-
setPkcs11Configuration
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the PKCS#11 configuration file to use.- Parameters:
pkcs11Configuration
- PKCS#11 configuration file (full path)
-
setAlias
Deprecated, for removal: This API element is subject to removal in a future version.Assigns the keystore alias to the entry holding the key pair.- Parameters:
alias
- keystore alias
-
setKeyPassword
public void setKeyPassword(char[] keyPassword) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the password to unlock the private key from the keystore.- Parameters:
keyPassword
- the key password
-
setPin
public void setPin(char[] pin) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the PIN. The same as keyPassword (used mainly for PKCS#11 credentials).- Parameters:
pin
- the PIN
-
afterPropertiesSet
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classPkiCredentialFactoryBean
- Throws:
Exception
-
PkiCredentialFactory
orPkiCredentialFactoryBean
instead.