|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
|
org.apache.ws.security.components.crypto.Crypto |
getObject()
|
java.lang.Class<org.apache.ws.security.components.crypto.Crypto> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setBeanClassLoader(java.lang.ClassLoader classLoader)
|
void |
setConfiguration(java.util.Properties properties)
Sets the configuration of the Crypto. |
void |
setCryptoProvider(java.lang.Class<? extends org.apache.ws.security.components.crypto.Crypto> cryptoProviderClass)
Sets the Crypto provider name. |
void |
setDefaultX509Alias(java.lang.String defaultX509Alias)
Sets the alias name of the default certificate which has been specified as a property. |
void |
setKeyStoreLocation(org.springframework.core.io.Resource location)
Sets the location of the key store to be loaded in the Crypto
instance. |
void |
setKeyStorePassword(java.lang.String password)
Sets the key store password. |
void |
setKeyStoreProvider(java.lang.String provider)
Sets the key store provider. |
void |
setKeyStoreType(java.lang.String type)
Sets the key store type. |
void |
setTrustStorePassword(java.lang.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(java.util.Properties properties)
CryptoFactory.getInstance(java.util.Properties)public void setCryptoProvider(java.lang.Class<? extends org.apache.ws.security.components.crypto.Crypto> cryptoProviderClass)
Crypto provider name. Defaults to Merlin.
This property maps to the WSS4J org.apache.ws.security.crypto.provider property.
cryptoProviderClass - the crypto provider class
public void setKeyStoreLocation(org.springframework.core.io.Resource location)
throws java.io.IOException
Crypto
instance.
This property maps to the WSS4J org.apache.ws.security.crypto.merlin.file property.
location - the key store location
java.io.IOException - when the resource cannot be openedpublic void setKeyStoreProvider(java.lang.String provider)
org.apache.ws.security.crypto.merlin.keystore.provider property.
provider - the key store providerpublic void setKeyStorePassword(java.lang.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(java.lang.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(java.lang.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(java.lang.String defaultX509Alias)
org.apache.ws.security.crypto.merlin.keystore.alias property.
defaultX509Alias - alias name of the default X509 certificatepublic void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic java.lang.Class<org.apache.ws.security.components.crypto.Crypto> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.ws.security.components.crypto.Crypto>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.ws.security.components.crypto.Crypto>
public org.apache.ws.security.components.crypto.Crypto getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.ws.security.components.crypto.Crypto>java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||