Class CryptoConfig

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

public class CryptoConfig extends Object implements org.apache.neethi.Assertion
Policy model bean to capture crypto information. Example:
<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>
  • Field Details

  • Constructor Details

    • CryptoConfig

      public CryptoConfig()
  • Method Details

    • getCryptoKey

      public String getCryptoKey()
    • setCryptoKey

      public void setCryptoKey(String cryptoKey)
    • getCacheRefreshInterval

      public String getCacheRefreshInterval()
    • setCacheRefreshInterval

      public void setCacheRefreshInterval(String cacheRefreshInterval)
    • getProp

      public Properties getProp()
    • setProp

      public void setProp(Properties prop)
    • getProvider

      public String getProvider()
    • setProvider

      public void setProvider(String provider)
    • 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
    • isCacheEnabled

      public boolean isCacheEnabled()
    • setCacheEnabled

      public void setCacheEnabled(boolean cacheEnabled)
    • 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