Package org.apache.rampart.policy.model
Class CryptoConfig
java.lang.Object
org.apache.rampart.policy.model.CryptoConfig
- All Implemented Interfaces:
org.apache.neethi.Assertion,org.apache.neethi.PolicyComponent
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequal(org.apache.neethi.PolicyComponent policyComponent) getName()getProp()shortgetType()booleanbooleanbooleanorg.apache.neethi.PolicyComponentvoidserialize(XMLStreamWriter writer) voidsetCacheEnabled(boolean cacheEnabled) voidsetCacheRefreshInterval(String cacheRefreshInterval) voidsetCryptoKey(String cryptoKey) voidsetProp(Properties prop) voidsetProvider(String provider)
-
Field Details
-
CRYPTO_LN
- See Also:
-
PROVIDER_ATTR
- See Also:
-
PROPERTY_LN
- See Also:
-
PROPERTY_NAME_ATTR
- See Also:
-
CRYPTO_KEY_ATTR
- See Also:
-
CACHE_REFRESH_INTVL
- See Also:
-
CACHE_ENABLED
- See Also:
-
-
Constructor Details
-
CryptoConfig
public CryptoConfig()
-
-
Method Details
-
getCryptoKey
-
setCryptoKey
-
getCacheRefreshInterval
-
setCacheRefreshInterval
-
getProp
-
setProp
-
getProvider
-
setProvider
-
getName
- Specified by:
getNamein interfaceorg.apache.neethi.Assertion
-
isOptional
public boolean isOptional()- Specified by:
isOptionalin interfaceorg.apache.neethi.Assertion
-
isIgnorable
public boolean isIgnorable()- Specified by:
isIgnorablein interfaceorg.apache.neethi.Assertion
-
normalize
public org.apache.neethi.PolicyComponent normalize()- Specified by:
normalizein interfaceorg.apache.neethi.Assertion
-
isCacheEnabled
public boolean isCacheEnabled() -
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled) -
serialize
- Specified by:
serializein interfaceorg.apache.neethi.Assertion- Specified by:
serializein interfaceorg.apache.neethi.PolicyComponent- Throws:
XMLStreamException
-
equal
public boolean equal(org.apache.neethi.PolicyComponent policyComponent) - Specified by:
equalin interfaceorg.apache.neethi.PolicyComponent
-
getType
public short getType()- Specified by:
getTypein interfaceorg.apache.neethi.PolicyComponent
-