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 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:policyValidatorCbClass>org.apache.axis2.security.ramp:PolicyValidatorCallbackHandler</ramp:policyValidatorCbClass>
  <ramp:timestampPrecisionInMs>true</timestampPrecisionInMs>
  <ramp:timestampTTL>300</ramp:timestampTTL>
  <ramp:timestampMaxSkew>0</ramp:timestampMaxSkew>
  <ramp:tokenStoreClass>org.apache.rahas.StorageImpl</ramp:tokenStoreClass>
  <ramp:nonceLifeTime>org.apache.rahas.StorageImpl</ramp:nonceLifeTime>
  <ramp:disableBSPEnforcement>false</ramp:disableBSPEnforcement>
  
  <ramp:signatureCrypto>
  <ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
  <ramp:property name="keystoreType">pkcs12</ramp:property>
  <ramp:property name="keystoreFile">/path/to/file.pkcs12</ramp:property>
  <ramp:property name="keystorePassword">password</ramp:property>
  </ramp:crypto>
  </ramp:signatureCrypto>
  
  <ramp:tokenIssuerPolicy>
  <wsp:Policy>
  ....
  ....
  </wsp:Policy>
  </ramp:tokenIssuerPolicy>
  </ramp:RampartConfig>
 
 
  • Field Details

  • Constructor Details

    • RampartConfig

      public RampartConfig()
  • Method Details

    • getKerberosConfig

      public KerberosConfig getKerberosConfig()
    • setKerberosConfig

      public void setKerberosConfig(KerberosConfig kerberosConfig)
    • getSSLConfig

      public SSLConfig getSSLConfig()
    • setSSLConfig

      public void setSSLConfig(SSLConfig sslConfig)
    • getTokenStoreClass

      public String getTokenStoreClass()
      Returns:
      Returns the tokenStoreClass.
    • setTokenStoreClass

      public void setTokenStoreClass(String tokenStoreClass)
      Parameters:
      tokenStoreClass - The tokenStoreClass to set.
    • getNonceLifeTime

      public String getNonceLifeTime()
      Returns:
      Returns the life time of a nonce in seconds.
    • setNonceLifeTime

      public void setNonceLifeTime(String nonceLife)
      Parameters:
      nonceLife - The life time of a nonce to set (in seconds).
    • 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)
    • getPolicyValidatorCbClass

      public String getPolicyValidatorCbClass()
    • setPolicyValidatorCbClass

      public void setPolicyValidatorCbClass(String policyValidatorCbClass)
    • getRampartConfigCbClass

      public String getRampartConfigCbClass()
    • setRampartConfigCbClass

      public void setRampartConfigCbClass(String rampartConfigCbClass)
    • getSigCryptoConfig

      public CryptoConfig getSigCryptoConfig()
    • setSigCryptoConfig

      public void setSigCryptoConfig(CryptoConfig sigCryptoConfig)
    • getUser

      public String getUser()
    • setUser

      public void setUser(String user)
    • getUserCertAlias

      public String getUserCertAlias()
    • setUserCertAlias

      public void setUserCertAlias(String userCertAlias)
    • 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
    • isIgnorable

      public boolean isIgnorable()
      Specified by:
      isIgnorable 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
      Specified by:
      serialize in interface org.apache.neethi.PolicyComponent
      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
    • isTimestampPrecisionInMs

      public boolean isTimestampPrecisionInMs()
    • isDefaultTimestampPrecisionInMs

      public boolean isDefaultTimestampPrecisionInMs()
    • setTimestampPrecisionInMs

      public void setTimestampPrecisionInMs(String timestampPrecisionInMs)
    • setDefaultTimestampPrecisionInMs

      public void setDefaultTimestampPrecisionInMs(boolean isTimestampPrecisionInMs)
    • getTimestampTTL

      public String getTimestampTTL()
      Returns:
      Returns the timestampTTL.
    • setTimestampTTL

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

      public String getTimestampMaxSkew()
      Returns:
      Returns the timestampMaxSkew.
    • setTimestampMaxSkew

      public void setTimestampMaxSkew(String timestampMaxSkew)
      Parameters:
      timestampMaxSkew - The timestampMaxSkew to set.
    • getOptimizeParts

      public OptimizePartsConfig getOptimizeParts()
    • setOptimizeParts

      public void setOptimizeParts(OptimizePartsConfig optimizeParts)
    • getStsAlias

      public String getStsAlias()
    • setStsAlias

      public void setStsAlias(String stsAlias)
    • getStsCryptoConfig

      public CryptoConfig getStsCryptoConfig()
    • setStsCryptoConfig

      public void setStsCryptoConfig(CryptoConfig stsCryptoConfig)
    • isTimeStampStrict

      public boolean isTimeStampStrict()
    • setTimeStampStrict

      public void setTimeStampStrict(String timestampStrict)
    • setTimeStampStrict

      public void setTimeStampStrict(boolean timestampStrict)
    • isDisableBSPEnforcement

      public boolean isDisableBSPEnforcement()
    • setDisableBSPEnforcement

      public void setDisableBSPEnforcement(String disableBSPEnforcement)
    • setDisableBSPEnforcement

      public void setDisableBSPEnforcement(boolean disableBSPEnforcement)
    • isAllowUsernameTokenNoPassword

      public boolean isAllowUsernameTokenNoPassword()
    • setAllowUsernameTokenNoPassword

      public void setAllowUsernameTokenNoPassword(String allowUsernameTokenNoPassword)
    • setAllowUsernameTokenNoPassword

      public void setAllowUsernameTokenNoPassword(boolean allowUsernameTokenNoPassword)
    • getTimeStampFutureTTL

      public int getTimeStampFutureTTL()
    • setTimeStampFutureTTL

      public void setTimeStampFutureTTL(String timestampFutureTTL)
    • setTimeStampFutureTTL

      public void setTimeStampFutureTTL(int timestampFutureTTL)
    • getUtTTL

      public int getUtTTL()
    • setUtTTL

      public void setUtTTL(String utTTL)
    • setUtTTL

      public void setUtTTL(int utTTL)
    • getUtFutureTTL

      public int getUtFutureTTL()
    • setUtFutureTTL

      public void setUtFutureTTL(String utFutureTTL)
    • setUtFutureTTL

      public void setUtFutureTTL(int utFutureTTL)
    • isHandleCustomPasswordTypes

      public boolean isHandleCustomPasswordTypes()
    • setHandleCustomPasswordTypes

      public void setHandleCustomPasswordTypes(String handleCustomPasswordTypes)
    • setHandleCustomPasswordTypes

      public void setHandleCustomPasswordTypes(boolean handleCustomPasswordTypes)
    • isAllowNamespaceQualifiedPasswordTypes

      public boolean isAllowNamespaceQualifiedPasswordTypes()
    • setAllowNamespaceQualifiedPasswordTypes

      public void setAllowNamespaceQualifiedPasswordTypes(String allowNamespaceQualifiedPasswordTypes)
    • setAllowNamespaceQualifiedPasswordTypes

      public void setAllowNamespaceQualifiedPasswordTypes(boolean allowNamespaceQualifiedPasswordTypes)
    • isEncodePasswords

      public boolean isEncodePasswords()
    • setEncodePasswords

      public void setEncodePasswords(String encodePasswords)
    • setEncodePasswords

      public void setEncodePasswords(boolean encodePasswords)
    • isValidateSamlSubjectConfirmation

      public boolean isValidateSamlSubjectConfirmation()
    • setValidateSamlSubjectConfirmation

      public void setValidateSamlSubjectConfirmation(String validateSamlSubjectConfirmation)
    • setValidateSamlSubjectConfirmation

      public void setValidateSamlSubjectConfirmation(boolean validateSamlSubjectConfirmation)
    • isAllowRSA15KeyTransportAlgorithm

      public boolean isAllowRSA15KeyTransportAlgorithm()
    • setAllowRSA15KeyTransportAlgorithm

      public void setAllowRSA15KeyTransportAlgorithm(String allowRSA15KeyTransportAlgorithm)
    • setAllowRSA15KeyTransportAlgorithm

      public void setAllowRSA15KeyTransportAlgorithm(boolean allowRSA15KeyTransportAlgorithm)
    • isMustUnderstandSecurityHeader

      public boolean isMustUnderstandSecurityHeader()
    • setMustUnderstandSecurityHeader

      public void setMustUnderstandSecurityHeader(String mustUnderstandSecurityHeader)
    • setMustUnderstandSecurityHeader

      public void setMustUnderstandSecurityHeader(boolean mustUnderstandSecurityHeader)