public class KeyManagersFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<KeyManager[]>, org.springframework.beans.factory.InitializingBean
KeyManager
s.
Uses the KeyManagerFactory
to create the KeyManager
s.
KeyManager
,
KeyManagerFactory
Constructor and Description |
---|
KeyManagersFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
KeyManager[] |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setAlgorithm(String algorithm)
Sets the algorithm of the
KeyManager to use. |
void |
setKeyStore(KeyStore keyStore)
Sets the source of key material.
|
void |
setPassword(String password)
Sets the password to use for integrity checking.
|
void |
setProvider(String provider)
Sets the provider of the key manager to use.
|
public void setPassword(String password)
public void setProvider(String provider)
public void setAlgorithm(String algorithm)
KeyManager
to use. If this is not set, the default is used.KeyManagerFactory.getDefaultAlgorithm()
public void setKeyStore(KeyStore keyStore)
KeyManagerFactory.init(KeyStore, char[])
public KeyManager[] getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<KeyManager[]>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<KeyManager[]>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<KeyManager[]>
Copyright © 2020 Pivotal Software. All rights reserved.