org.apache.rampart.policy.model
Class RampartConfig
java.lang.Object
org.apache.rampart.policy.model.RampartConfig
- All Implemented Interfaces:
- org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent
- public class RampartConfig
- extends java.lang.Object
- implements org.apache.neethi.Assertion
Rampart policy model bean to capture Rampart configuration assertion info.
Example:
<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy">
<ramp:user>alice</ramp:user>
<ramp:encryptionUser>bob</ramp:encryptionUser>
<ramp:passwordCallbackClass>org.apache.axis2.security.PWCallback</ramp:passwordCallbackClass>
<ramp:timestampTTL>300</ramp:timestampTTL>
<ramp:tokenStoreClass>org.apache.rahas.StorageImpl</ramp:tokenStoreClass>
<ramp:signatureCrypto>
<ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
<ramp:property name="keystoreType">JKS</ramp:property>
<ramp:property name="keystoreFile">/path/to/file.jks</ramp:property>
<ramp:property name="keystorePassword">password</ramp:property>
</ramp:crypto>
</ramp:signatureCrypto>
<ramp:tokenIssuerPolicy>
<wsp:Policy>
....
....
</wsp:Policy>
</ramp:tokenIssuerPolicy>
</ramp:RampartConfig>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIMESTAMP_TTL
public static final int DEFAULT_TIMESTAMP_TTL
- See Also:
- Constant Field Values
NS
public static final java.lang.String NS
- See Also:
- Constant Field Values
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
RAMPART_CONFIG_LN
public static final java.lang.String RAMPART_CONFIG_LN
- See Also:
- Constant Field Values
USER_LN
public static final java.lang.String USER_LN
- See Also:
- Constant Field Values
ENCRYPTION_USER_LN
public static final java.lang.String ENCRYPTION_USER_LN
- See Also:
- Constant Field Values
PW_CB_CLASS_LN
public static final java.lang.String PW_CB_CLASS_LN
- See Also:
- Constant Field Values
SIG_CRYPTO_LN
public static final java.lang.String SIG_CRYPTO_LN
- See Also:
- Constant Field Values
ENCR_CRYPTO_LN
public static final java.lang.String ENCR_CRYPTO_LN
- See Also:
- Constant Field Values
DEC_CRYPTO_LN
public static final java.lang.String DEC_CRYPTO_LN
- See Also:
- Constant Field Values
TS_TTL_LN
public static final java.lang.String TS_TTL_LN
- See Also:
- Constant Field Values
TOKEN_STORE_CLASS_LN
public static final java.lang.String TOKEN_STORE_CLASS_LN
- See Also:
- Constant Field Values
OPTIMISE_PARTS_LN
public static final java.lang.String OPTIMISE_PARTS_LN
- See Also:
- Constant Field Values
RampartConfig
public RampartConfig()
getTokenStoreClass
public java.lang.String getTokenStoreClass()
- Returns:
- Returns the tokenStoreClass.
setTokenStoreClass
public void setTokenStoreClass(java.lang.String tokenStoreClass)
- Parameters:
tokenStoreClass
- The tokenStoreClass to set.
getDecCryptoConfig
public CryptoConfig getDecCryptoConfig()
setDecCryptoConfig
public void setDecCryptoConfig(CryptoConfig decCrypto)
getEncrCryptoConfig
public CryptoConfig getEncrCryptoConfig()
setEncrCryptoConfig
public void setEncrCryptoConfig(CryptoConfig encrCrypto)
getEncryptionUser
public java.lang.String getEncryptionUser()
setEncryptionUser
public void setEncryptionUser(java.lang.String encryptionUser)
getPwCbClass
public java.lang.String getPwCbClass()
setPwCbClass
public void setPwCbClass(java.lang.String pwCbClass)
getSigCryptoConfig
public CryptoConfig getSigCryptoConfig()
setSigCryptoConfig
public void setSigCryptoConfig(CryptoConfig sigCryptoConfig)
getUser
public java.lang.String getUser()
setUser
public void setUser(java.lang.String user)
getName
public javax.xml.namespace.QName getName()
- Specified by:
getName
in interface org.apache.neethi.Assertion
isOptional
public boolean isOptional()
- Specified by:
isOptional
in interface org.apache.neethi.Assertion
normalize
public org.apache.neethi.PolicyComponent normalize()
- Specified by:
normalize
in interface org.apache.neethi.Assertion
serialize
public void serialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Specified by:
serialize
in interface org.apache.neethi.Assertion
- Throws:
javax.xml.stream.XMLStreamException
equal
public boolean equal(org.apache.neethi.PolicyComponent policyComponent)
- Specified by:
equal
in interface org.apache.neethi.PolicyComponent
getType
public short getType()
- Specified by:
getType
in interface org.apache.neethi.PolicyComponent
getTimestampTTL
public java.lang.String getTimestampTTL()
- Returns:
- Returns the timestampTTL.
setTimestampTTL
public void setTimestampTTL(java.lang.String timestampTTL)
- Parameters:
timestampTTL
- The timestampTTL to set.
setOptimizeParts
public void setOptimizeParts(java.lang.String strOptimizeParts)
- Parameters:
strOptimizeParts
- The xpath of elements that should be optimized
getOptimizeParts
public java.lang.String getOptimizeParts()
- Returns:
- The Xpath string of indicating elements to be optimized or null.
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.