Spring Web Services Framework

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

java.lang.Object
  extended by org.springframework.ws.soap.security.support.KeyStoreFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean

public class KeyStoreFactoryBean
extends Object
implements FactoryBean, InitializingBean

Spring factory bean for a KeyStore.

To load an existing key store, you must set the location property. If this property is not set, a new, empty key store is created, which is most likely not what you want.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
setLocation(org.springframework.core.io.Resource), KeyStore

Constructor Summary
KeyStoreFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setLocation(Resource location)
          Sets the location of the key store to use.
 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.
 void setType(String type)
          Sets the type of the KeyStore to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStoreFactoryBean

public KeyStoreFactoryBean()
Method Detail

setLocation

public void setLocation(Resource location)
Sets the location of the key store to use. If this is not set, a new, empty key store will be used.

See Also:
KeyStore.load(java.io.InputStream,char[])

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.


setType

public void setType(String type)
Sets the type of the KeyStore to use. If this is not set, the default is used.

See Also:
KeyStore.getDefaultType()

getObject

public Object getObject()
Specified by:
getObject in interface FactoryBean

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

afterPropertiesSet

public final void afterPropertiesSet()
                              throws GeneralSecurityException,
                                     IOException
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
GeneralSecurityException
IOException

Spring Web Services Framework

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