Spring Web Services Framework

org.springframework.ws.soap.security.support
Class KeyManagersFactoryBean

java.lang.Object
  extended by org.springframework.ws.soap.security.support.KeyManagersFactoryBean
All Implemented Interfaces:
FactoryBean<KeyManager[]>, InitializingBean

public class KeyManagersFactoryBean
extends Object
implements FactoryBean<KeyManager[]>, InitializingBean

Spring factory bean for an array of KeyManagers.

Uses the KeyManagerFactory to create the KeyManagers.

Since:
2.1.2
Author:
Stephen More, Arjen Poutsma
See Also:
KeyManager, KeyManagerFactory

Constructor Summary
KeyManagersFactoryBean()
           
 
Method Summary
 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 store to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyManagersFactoryBean

public KeyManagersFactoryBean()
Method Detail

setPassword

public void setPassword(String password)
Sets the password to use for integrity checking. If this property is not set, then integrity checking is not performed.


setProvider

public void setProvider(String provider)
Sets the provider of the key store to use. If this is not set, the default is used.


setAlgorithm

public void setAlgorithm(String algorithm)
Sets the algorithm of the KeyManager to use. If this is not set, the default is used.

See Also:
KeyManagerFactory.getDefaultAlgorithm()

setKeyStore

public void setKeyStore(KeyStore keyStore)
Sets the source of key material.

See Also:
KeyManagerFactory.init(KeyStore, char[])

getObject

public KeyManager[] getObject()
                       throws Exception
Specified by:
getObject in interface FactoryBean<KeyManager[]>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<KeyManager[]>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<KeyManager[]>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.