Module net.shibboleth.ext.spring
Class KeyStoreFactoryBean
- java.lang.Object
-
- net.shibboleth.ext.spring.factory.KeyStoreFactoryBean
-
- All Implemented Interfaces:
FactoryBean<KeyStore>
public class KeyStoreFactoryBean extends Object implements FactoryBean<KeyStore>
- Since:
- 5.4.0
-
-
Field Summary
Fields Modifier and Type Field Description private StringkeyPassPassword for the keystore.private KeyStorekeyStoreThe singleton instance of the private key produced by this factory.private StringproviderKeyStore provider.private ResourceresourceKeyStore resource.private StringtypeKeyStore type.-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description KeyStoreFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStoregetObject()Class<?>getObjectType()booleanisSingleton()voidsetPassword(String password)Set the password for the keystore.voidsetProvider(String prov)Set the KeyStore provider, if non-defaulted.voidsetResource(Resource res)Set the resource containing the keystore.voidsetType(String typ)Set the KeyStore type, if non-defaulted.
-
-
-
Field Detail
-
resource
@Nullable private Resource resource
KeyStore resource.
-
keyPass
@Nullable private String keyPass
Password for the keystore.
-
type
@Nullable private String type
KeyStore type.
-
provider
@Nullable private String provider
KeyStore provider.
-
keyStore
@Nullable private KeyStore keyStore
The singleton instance of the private key produced by this factory.
-
-
Method Detail
-
setResource
public void setResource(@Nonnull Resource res)Set the resource containing the keystore.- Parameters:
res- private key resource
-
setPassword
public void setPassword(@Nullable String password)Set the password for the keystore.- Parameters:
password- password for the keystore
-
setProvider
public void setProvider(@Nullable String prov)Set the KeyStore provider, if non-defaulted.- Parameters:
prov- provider
-
setType
public void setType(@Nullable String typ)Set the KeyStore type, if non-defaulted.- Parameters:
typ- KeyStore type
-
getObject
public KeyStore getObject() throws Exception
- Specified by:
getObjectin interfaceFactoryBean<KeyStore>- Throws:
Exception
-
getObjectType
@Nonnull public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<KeyStore>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceFactoryBean<KeyStore>
-
-