org.apache.rampart.policy.model
Class RampartConfig

java.lang.Object
  extended byorg.apache.rampart.policy.model.RampartConfig
All Implemented Interfaces:
org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent

public class RampartConfig
extends 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>
 
 


Field Summary
static String DEC_CRYPTO_LN
           
static int DEFAULT_TIMESTAMP_TTL
           
static String ENCR_CRYPTO_LN
           
static String ENCRYPTION_USER_LN
           
static String NS
           
static String PREFIX
           
static String PW_CB_CLASS_LN
           
static String RAMPART_CONFIG_LN
           
static String SIG_CRYPTO_LN
           
static String TOKEN_STORE_CLASS_LN
           
static String TS_TTL_LN
           
static String USER_LN
           
 
Constructor Summary
RampartConfig()
           
 
Method Summary
 boolean equal(org.apache.neethi.PolicyComponent policyComponent)
           
 CryptoConfig getDecCryptoConfig()
           
 CryptoConfig getEncrCryptoConfig()
           
 String getEncryptionUser()
           
 QName getName()
           
 String getPwCbClass()
           
 CryptoConfig getSigCryptoConfig()
           
 String getTimestampTTL()
           
 String getTokenStoreClass()
           
 short getType()
           
 String getUser()
           
 boolean isOptional()
           
 org.apache.neethi.PolicyComponent normalize()
           
 void serialize(XMLStreamWriter writer)
           
 void setDecCryptoConfig(CryptoConfig decCrypto)
           
 void setEncrCryptoConfig(CryptoConfig encrCrypto)
           
 void setEncryptionUser(String encryptionUser)
           
 void setPwCbClass(String pwCbClass)
           
 void setSigCryptoConfig(CryptoConfig sigCryptoConfig)
           
 void setTimestampTTL(String timestampTTL)
           
 void setTokenStoreClass(String tokenStoreClass)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIMESTAMP_TTL

public static final int DEFAULT_TIMESTAMP_TTL
See Also:
Constant Field Values

NS

public static final String NS
See Also:
Constant Field Values

PREFIX

public static final String PREFIX
See Also:
Constant Field Values

RAMPART_CONFIG_LN

public static final String RAMPART_CONFIG_LN
See Also:
Constant Field Values

USER_LN

public static final String USER_LN
See Also:
Constant Field Values

ENCRYPTION_USER_LN

public static final String ENCRYPTION_USER_LN
See Also:
Constant Field Values

PW_CB_CLASS_LN

public static final String PW_CB_CLASS_LN
See Also:
Constant Field Values

SIG_CRYPTO_LN

public static final String SIG_CRYPTO_LN
See Also:
Constant Field Values

ENCR_CRYPTO_LN

public static final String ENCR_CRYPTO_LN
See Also:
Constant Field Values

DEC_CRYPTO_LN

public static final String DEC_CRYPTO_LN
See Also:
Constant Field Values

TS_TTL_LN

public static final String TS_TTL_LN
See Also:
Constant Field Values

TOKEN_STORE_CLASS_LN

public static final String TOKEN_STORE_CLASS_LN
See Also:
Constant Field Values
Constructor Detail

RampartConfig

public RampartConfig()
Method Detail

getTokenStoreClass

public String getTokenStoreClass()
Returns:
Returns the tokenStoreClass.

setTokenStoreClass

public void setTokenStoreClass(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 String getEncryptionUser()

setEncryptionUser

public void setEncryptionUser(String encryptionUser)

getPwCbClass

public String getPwCbClass()

setPwCbClass

public void setPwCbClass(String pwCbClass)

getSigCryptoConfig

public CryptoConfig getSigCryptoConfig()

setSigCryptoConfig

public void setSigCryptoConfig(CryptoConfig sigCryptoConfig)

getUser

public String getUser()

setUser

public void setUser(String user)

getName

public 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(XMLStreamWriter writer)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.neethi.Assertion
Throws:
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 String getTimestampTTL()
Returns:
Returns the timestampTTL.

setTimestampTTL

public void setTimestampTTL(String timestampTTL)
Parameters:
timestampTTL - The timestampTTL to set.