|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.soap.security.wss4j.support.CryptoFactoryBean
public class CryptoFactoryBean
Spring factory bean for a WSS4J Crypto
. Allows for strong-typed property configuration, or configuration
through Properties
.
configuration
property
to be set.
Crypto
Constructor Summary | |
---|---|
CryptoFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
Object |
getObject()
|
Class |
getObjectType()
|
boolean |
isSingleton()
|
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setConfiguration(Properties properties)
Sets the configuration of the Crypto. |
void |
setCryptoProvider(Class cryptoProviderClass)
Sets the Crypto provider name. |
void |
setDefaultX509Alias(String defaultX509Alias)
Sets the alias name of the default certificate which has been specified as a property. |
void |
setKeyStoreLocation(Resource location)
Sets the location of the key store to be loaded in the Crypto
instance. |
void |
setKeyStorePassword(String password)
Sets the key store password. |
void |
setKeyStoreProvider(String provider)
Sets the key store provider. |
void |
setKeyStoreType(String type)
Sets the key store type. |
void |
setTrustStorePassword(String password)
Sets the trust store password. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CryptoFactoryBean()
Method Detail |
---|
public void setConfiguration(Properties properties)
CryptoFactory.getInstance(java.util.Properties)
public void setCryptoProvider(Class cryptoProviderClass)
Crypto
provider name. Defaults to Merlin
.
This property maps to the WSS4J org.apache.ws.security.crypto.provider
property.
cryptoProviderClass
- the crypto provider classpublic void setKeyStoreLocation(Resource location) throws IOException
Crypto
instance.
This property maps to the WSS4J org.apache.ws.security.crypto.merlin.file
property.
location
- the key store location
IOException
- when the resource cannot be openedpublic void setKeyStoreProvider(String provider)
org.apache.ws.security.crypto.merlin.keystore.provider
property.
provider
- the key store providerpublic void setKeyStorePassword(String password)
security
.
This property maps to the WSS4J org.apache.ws.security.crypto.merlin.keystore.password
property.
password
- the key store passwordpublic void setKeyStoreType(String type)
KeyStore.getDefaultType()
.
This property maps to the WSS4J org.apache.ws.security.crypto.merlin.keystore.type
property.
type
- the key store typepublic void setTrustStorePassword(String password)
changeit
.
WSS4J crypto uses the standard J2SE trust store, i.e. $JAVA_HOME/lib/security/cacerts
.
This property maps to the WSS4J org.apache.ws.security.crypto.merlin.cacerts.password
property.
password
- the trust store passwordpublic void setDefaultX509Alias(String defaultX509Alias)
org.apache.ws.security.crypto.merlin.keystore.alias
property.
defaultX509Alias
- alias name of the default X509 certificatepublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public Class getObjectType()
getObjectType
in interface FactoryBean
public boolean isSingleton()
isSingleton
in interface FactoryBean
public Object getObject() throws Exception
getObject
in interface FactoryBean
Exception
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |