Apache Rampart - Configuration Guide

Rampart Configurations

RampartConfig element can have any of the following child elements. Schema is available here

ParameterDescriptionExample
userThe user's nameSet username of UsernameToken to be used

<user> bob</user>
userCertAliasThe user's cert aliasSet alias of the key to be used to sign

<userCertAlias> bob</userCertAlias>
encryptionUserThe user's name for encryption. <encryptionUser>alice</encryptionUser>
passwordCallbackClassCallback class used to provide the password required to create the UsernameToken or to sign the message
<passwordCallbackClass>
    org.apache.axis2.security.PWCallback
</passwordCallbackClass>
policyValidatorCbClassCallback class used to provide custom validater
<policyValidatorCbClass>
    org.apache.axis2.security.CustomPolicyValidater
</policyValidatorCbClass>
signatureCryptoproperties to needed perform signature, such as crypto provider, keystore and its password
<signatureCrypto>
	<crypto provider="org.apache.ws.security.components.crypto.Merlin">
		<property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</property>
		<property name="org.apache.ws.security.crypto.merlin.file">client.jks</property>
		<property name="org.apache.ws.security.crypto.merlin.keystore.password">apache</property>
	</crypto>
<signatureCrypto>
encryptionCyptoproperties to needed perform signature, such as crypto provider, keystore and its password
        
<encryptionCypto>
    ....crypto element ......
</encryptionCypto>
decryptionCryptoproperties to needed perform signature, such as crypto provider, keystore and its password
  
<decryptionCrypto>
    ....crypto element ......
</decryptionCrypto>
timestampTTLTime to live of TimestampThe default timestamp time to live is 300 seconds
timestampMaxSkewThe maximum tolerence limit for timeskew of the timestampRampart allows timestamps created slightly ahead of the reciever's time.

This parameter allows to specify the tolerence limit
timestampPrecisionInMilliseconds Whether the timestamps precision should be milliseconds When this value is set false, generated timestamps doesn't contain milliseconds
optimizeParts
tokenStoreClass
sslConfigSSL Configuration need for TransportbindingCan specify the properties such as "javax.net.ssl.trustStore" and "javax.net.ssl.trustStorePassword". Please see below for more information.


Crypto Provider

org.apache.ws.security.crypto.provider defines the implementation of the org.apache.ws.security.components.crypto.Crypto interface to provide the crypto information required by WSS4J. The other properties defined are the configuration properties used by the implementation class (org.apache.ws.security.components.crypto.Merlin).

References

1. Apache WSS4J -Home