org.apache.rampart.policy.model
Class CryptoConfig

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

public class CryptoConfig
extends java.lang.Object
implements org.apache.neethi.Assertion

Policy model bean to capture crypto information. Example:


    JKS
    /path/to/file.jks
    password


Field Summary
static java.lang.String CACHE_ENABLED
           
static java.lang.String CACHE_REFRESH_INTVL
           
static java.lang.String CRYPTO_KEY_ATTR
           
static java.lang.String CRYPTO_LN
           
static java.lang.String PROPERTY_LN
           
static java.lang.String PROPERTY_NAME_ATTR
           
static java.lang.String PROVIDER_ATTR
           
 
Constructor Summary
CryptoConfig()
           
 
Method Summary
 boolean equal(org.apache.neethi.PolicyComponent policyComponent)
           
 java.lang.String getCacheRefreshInterval()
           
 java.lang.String getCryptoKey()
           
 javax.xml.namespace.QName getName()
           
 java.util.Properties getProp()
           
 java.lang.String getProvider()
           
 short getType()
           
 boolean isCacheEnabled()
           
 boolean isOptional()
           
 org.apache.neethi.PolicyComponent normalize()
           
 void serialize(javax.xml.stream.XMLStreamWriter writer)
           
 void setCacheEnabled(boolean cacheEnabled)
           
 void setCacheRefreshInterval(java.lang.String cacheRefreshInterval)
           
 void setCryptoKey(java.lang.String cryptoKey)
           
 void setProp(java.util.Properties prop)
           
 void setProvider(java.lang.String provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRYPTO_LN

public static final java.lang.String CRYPTO_LN
See Also:
Constant Field Values

PROVIDER_ATTR

public static final java.lang.String PROVIDER_ATTR
See Also:
Constant Field Values

PROPERTY_LN

public static final java.lang.String PROPERTY_LN
See Also:
Constant Field Values

PROPERTY_NAME_ATTR

public static final java.lang.String PROPERTY_NAME_ATTR
See Also:
Constant Field Values

CRYPTO_KEY_ATTR

public static final java.lang.String CRYPTO_KEY_ATTR
See Also:
Constant Field Values

CACHE_REFRESH_INTVL

public static final java.lang.String CACHE_REFRESH_INTVL
See Also:
Constant Field Values

CACHE_ENABLED

public static final java.lang.String CACHE_ENABLED
See Also:
Constant Field Values
Constructor Detail

CryptoConfig

public CryptoConfig()
Method Detail

getCryptoKey

public java.lang.String getCryptoKey()

setCryptoKey

public void setCryptoKey(java.lang.String cryptoKey)

getCacheRefreshInterval

public java.lang.String getCacheRefreshInterval()

setCacheRefreshInterval

public void setCacheRefreshInterval(java.lang.String cacheRefreshInterval)

getProp

public java.util.Properties getProp()

setProp

public void setProp(java.util.Properties prop)

getProvider

public java.lang.String getProvider()

setProvider

public void setProvider(java.lang.String provider)

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

isCacheEnabled

public boolean isCacheEnabled()

setCacheEnabled

public void setCacheEnabled(boolean cacheEnabled)

serialize

public void serialize(javax.xml.stream.XMLStreamWriter writer)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface org.apache.neethi.Assertion
Specified by:
serialize in interface org.apache.neethi.PolicyComponent
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