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
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, 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 TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.protected PkiCredentialDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Assigns the keystore alias to the entry holding the key pair.voidsetCertificate(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).voidsetCertificates(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).voidsetKeyPassword(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.voidDeprecated, for removal: This API element is subject to removal in a future version.Assigns the name of the credential.voidsetPassword(char[] password) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the keystore password.voidsetPin(char[] pin) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the PIN.voidsetPkcs11Configuration(String pkcs11Configuration) Deprecated, for removal: This API element is subject to removal in a future version.Assigns the PKCS#11 configuration file to use.voidsetPrivateKey(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).voidsetProvider(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.voidsetResource(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.voidDeprecated, 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, setKeyStoreReloaderProviderMethods 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:
createInstancein 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:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classPkiCredentialFactoryBean- Throws:
Exception
-
PkiCredentialFactoryorPkiCredentialFactoryBeaninstead.