org.apache.rampart.policy
Class RampartPolicyData

java.lang.Object
  extended by org.apache.rampart.policy.RampartPolicyData

public class RampartPolicyData
extends java.lang.Object


Constructor Summary
RampartPolicyData()
           
 
Method Summary
 void addDeclaredNamespaces(java.util.HashMap namespaces)
           
 void addSignedPart(java.lang.String namespace, java.lang.String element)
           
 void addSignedPart(org.apache.ws.security.WSEncryptionPart part)
           
 org.apache.ws.secpolicy.model.AlgorithmSuite getAlgorithmSuite()
           
 java.util.Vector getContentEncryptedElements()
           
 java.util.HashMap getDeclaredNamespaces()
           
 java.util.Vector getEncryptedElements()
           
 java.util.Vector getEncryptedParts()
           
 org.apache.ws.secpolicy.model.SupportingToken getEncryptedSupportingTokens()
           
 org.apache.ws.secpolicy.model.Token getEncryptionToken()
           
 org.apache.ws.secpolicy.model.SupportingToken getEndorsingEncryptedSupportingTokens()
           
 org.apache.ws.secpolicy.model.SupportingToken getEndorsingSupportingTokens()
           
 org.apache.ws.secpolicy.model.Token getInitiatorToken()
           
 org.apache.neethi.Policy getIssuerPolicy()
           
 java.lang.String getLayout()
           
 org.apache.axis2.policy.model.MTOMAssertion getMTOMAssertion()
           
 OptimizePartsConfig getOptimizePartsConfig()
           
 java.lang.String getProtectionOrder()
           
 RampartConfig getRampartConfig()
           
 org.apache.ws.secpolicy.model.Token getRecipientToken()
           
 java.util.Vector getRequiredElements()
           
 org.apache.ws.secpolicy.model.Token getSignatureToken()
           
 java.util.Vector getSignedElements()
           
 org.apache.ws.secpolicy.model.SupportingToken getSignedEncryptedSupportingTokens()
           
 org.apache.ws.secpolicy.model.SupportingToken getSignedEndorsingEncryptedSupportingTokens()
           
 org.apache.ws.secpolicy.model.SupportingToken getSignedEndorsingSupportingTokens()
           
 java.util.Vector getSignedParts()
           
 org.apache.ws.secpolicy.model.SupportingToken getSignedSupportingTokens()
           
 java.lang.String getSupportingTokenID(org.apache.ws.secpolicy.model.Token token, int type)
           
 org.apache.ws.secpolicy.model.SupportingToken getSupportingTokens()
           
 org.apache.ws.secpolicy.model.Token getTransportToken()
           
 org.apache.ws.secpolicy.model.Trust10 getTrust10()
           
 org.apache.ws.secpolicy.model.Wss10 getWss10()
           
 org.apache.ws.secpolicy.model.Wss11 getWss11()
           
 boolean isAsymmetricBinding()
           
 boolean isEncryptAttachments()
           
 boolean isEncryptBody()
           
 boolean isEntireHeadersAndBodySignatures()
           
 boolean isIncludeTimestamp()
           
 boolean isMTOMSerialize()
           
 boolean isSignAttachments()
           
 boolean isSignatureConfirmation()
           
 boolean isSignatureProtection()
           
 boolean isSignBody()
           
 boolean isSymmetricBinding()
           
 boolean isTokenProtection()
           
 boolean isTransportBinding()
           
 void setAlgorithmSuite(org.apache.ws.secpolicy.model.AlgorithmSuite algorithmSuite)
           
 void setAsymmetricBinding(boolean asymmetricBinding)
           
 void setContentEncryptedElements(java.lang.String encElement)
           
 void setEncryptAttachments(boolean encryptAttachments)
           
 void setEncryptBody(boolean encryptBody)
           
 void setEncryptedElements(java.lang.String encElement)
           
 void setEncryptedParts(java.lang.String namespace, java.lang.String element)
           
 void setEncryptedParts(java.lang.String namespace, java.lang.String element, java.lang.String modifier)
           
 void setEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken encryptedSupportingTokens)
           
 void setEncryptionToken(org.apache.ws.secpolicy.model.Token encryptionToken)
           
 void setEndorsingEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken endorsingEncryptedSupportingTokens)
           
 void setEndorsingSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken endorsingSupportingTokens)
           
 void setEntireHeadersAndBodySignatures(boolean entireHeaderAndBodySignatures)
           
 void setIncludeTimestamp(boolean includeTimestamp)
           
 void setInitiatorToken(org.apache.ws.secpolicy.model.Token initiatorToken)
           
 void setLayout(java.lang.String layout)
           
 void setMTOMAssertion(org.apache.axis2.policy.model.MTOMAssertion mtomAssertion)
           
 void setProtectionOrder(java.lang.String protectionOrder)
           
 void setProtectionToken(org.apache.ws.secpolicy.model.Token protectionToken)
           
 void setRampartConfig(RampartConfig rampartConfig)
           
 void setRecipientToken(org.apache.ws.secpolicy.model.Token recipientToken)
           
 void setRequiredElements(java.lang.String reqElement)
           
 void setSignAttachments(boolean signAttachments)
           
 void setSignatureConfirmation(boolean signatureConfirmation)
           
 void setSignatureProtection(boolean signatureProtection)
           
 void setSignatureToken(org.apache.ws.secpolicy.model.Token signatureToken)
           
 void setSignBody(boolean signBody)
           
 void setSignedElements(java.lang.String sigElement)
           
 void setSignedEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedEncryptedSupportingTokens)
           
 void setSignedEndorsingEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedEndorsingEncryptedSupportingTokens)
           
 void setSignedEndorsingSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedEndorsingSupportingTokens)
           
 void setSignedParts(java.util.Vector signedParts)
           
 void setSignedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedSupportingTokens)
           
 void setSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken suppTokens)
           
 void setSupporttingtokenId(org.apache.ws.secpolicy.model.Token token, java.lang.String id, int type)
          Add the given token and id to the map.
 void setSymmetricBinding(boolean symmetricBinding)
           
 void setTokenProtection(boolean tokenProtection)
           
 void setTransportBinding(boolean transportBinding)
           
 void setTransportToken(org.apache.ws.secpolicy.model.Token transportToken)
           
 void setTrust10(org.apache.ws.secpolicy.model.Trust10 trust10)
           
 void setWss10(org.apache.ws.secpolicy.model.Wss10 wss10)
           
 void setWss11(org.apache.ws.secpolicy.model.Wss11 wss11)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RampartPolicyData

public RampartPolicyData()
Method Detail

isSymmetricBinding

public boolean isSymmetricBinding()
Returns:
Returns the symmetricBinding.

setSymmetricBinding

public void setSymmetricBinding(boolean symmetricBinding)
Parameters:
symmetricBinding - The symmetricBinding to set.

isAsymmetricBinding

public boolean isAsymmetricBinding()
Returns:
Returns a boolean value indicating whether a Asymmetric Binding

setAsymmetricBinding

public void setAsymmetricBinding(boolean asymmetricBinding)
Parameters:
asymmetricBinding - boolean value indicating whether a Asymmetric Binding

isEntireHeadersAndBodySignatures

public boolean isEntireHeadersAndBodySignatures()
Returns:
Returns the entireHeaderAndBodySignatures.

setEntireHeadersAndBodySignatures

public void setEntireHeadersAndBodySignatures(boolean entireHeaderAndBodySignatures)
Parameters:
entireHeaderAndBodySignatures - The entireHeaderAndBodySignatures to set.

isIncludeTimestamp

public boolean isIncludeTimestamp()
Returns:
Returns the includeTimestamp.

setIncludeTimestamp

public void setIncludeTimestamp(boolean includeTimestamp)
Parameters:
includeTimestamp - The includeTimestamp to set.

getLayout

public java.lang.String getLayout()
Returns:
Returns the layout.

setLayout

public void setLayout(java.lang.String layout)
Parameters:
layout - The layout to set.

getProtectionOrder

public java.lang.String getProtectionOrder()
Returns:
Returns the protectionOrder.

setProtectionOrder

public void setProtectionOrder(java.lang.String protectionOrder)
Parameters:
protectionOrder - The protectionOrder to set.

isSignatureProtection

public boolean isSignatureProtection()
Returns:
Returns the signatureProtection.

setSignatureProtection

public void setSignatureProtection(boolean signatureProtection)
Parameters:
signatureProtection - The signatureProtection to set.

isTokenProtection

public boolean isTokenProtection()
Returns:
Returns the tokenProtection.

setTokenProtection

public void setTokenProtection(boolean tokenProtection)
Parameters:
tokenProtection - The tokenProtection to set.

isSignatureConfirmation

public boolean isSignatureConfirmation()
Returns:
Returns the signatureConfirmation.

setSignatureConfirmation

public void setSignatureConfirmation(boolean signatureConfirmation)
Parameters:
signatureConfirmation - The signatureConfirmation to set.

getEncryptedElements

public java.util.Vector getEncryptedElements()
Returns:
Returns the encryptedElements.

setEncryptedElements

public void setEncryptedElements(java.lang.String encElement)
Parameters:
encElement - The encrypted Element (XPath) to set.

getRequiredElements

public java.util.Vector getRequiredElements()
Returns:
Returns the requiredElements.

setRequiredElements

public void setRequiredElements(java.lang.String reqElement)
Parameters:
requiredElements - The Required Element (XPath) to set.

getContentEncryptedElements

public java.util.Vector getContentEncryptedElements()
Returns:
Returns the contentEncryptedElements.

setContentEncryptedElements

public void setContentEncryptedElements(java.lang.String encElement)
Parameters:
encElement - The encrypted Element (XPath) to set.

getEncryptedParts

public java.util.Vector getEncryptedParts()
Returns:
Returns the encryptedParts.

setEncryptedParts

public void setEncryptedParts(java.lang.String namespace,
                              java.lang.String element)
Parameters:
namespace - The namespace of the part.
element - The part's element name.

setEncryptedParts

public void setEncryptedParts(java.lang.String namespace,
                              java.lang.String element,
                              java.lang.String modifier)
Parameters:
namespace - The namespace of the part.
element - The part's element name.
modifier - The type of encryption Element,Content,Header

isEncryptBody

public boolean isEncryptBody()
Returns:
Returns the encryptBody.

setEncryptBody

public void setEncryptBody(boolean encryptBody)
Parameters:
encryptBody - The encryptBody to set.

isSignBody

public boolean isSignBody()
Returns:
Returns the signBody.

setSignBody

public void setSignBody(boolean signBody)
Parameters:
signBody - The signBody to set.

isSignAttachments

public boolean isSignAttachments()
Returns:
Returns the signAttachments.

setSignAttachments

public void setSignAttachments(boolean signAttachments)
Parameters:
signAttachments - The signAttachments to set.

isEncryptAttachments

public boolean isEncryptAttachments()
Returns:
Returns the encryptAttachments.

setEncryptAttachments

public void setEncryptAttachments(boolean encryptAttachments)
Parameters:
encryptAttachments - The encryptAttachments to set.

getSignedElements

public java.util.Vector getSignedElements()
Returns:
Returns the signedElements.

setSignedElements

public void setSignedElements(java.lang.String sigElement)
Parameters:
sigElement - The signed Element (XPath) to set.

getSignedParts

public java.util.Vector getSignedParts()
Returns:
Returns the signedParts.

getDeclaredNamespaces

public java.util.HashMap getDeclaredNamespaces()

addDeclaredNamespaces

public void addDeclaredNamespaces(java.util.HashMap namespaces)

addSignedPart

public void addSignedPart(java.lang.String namespace,
                          java.lang.String element)
Parameters:
namespace - The namespace of the part.
element - The part's element name.

addSignedPart

public void addSignedPart(org.apache.ws.security.WSEncryptionPart part)

setSignedParts

public void setSignedParts(java.util.Vector signedParts)

setSupportingTokens

public void setSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken suppTokens)
                         throws org.apache.ws.secpolicy.WSSPolicyException
Throws:
org.apache.ws.secpolicy.WSSPolicyException

getRampartConfig

public RampartConfig getRampartConfig()
Returns:
Returns the rampartConfig.

getEncryptionToken

public org.apache.ws.secpolicy.model.Token getEncryptionToken()
Returns:
Returns the encryptionToken.

setEncryptionToken

public void setEncryptionToken(org.apache.ws.secpolicy.model.Token encryptionToken)
Parameters:
encryptionToken - The encryptionToken to set.

getInitiatorToken

public org.apache.ws.secpolicy.model.Token getInitiatorToken()
Returns:
Returns the initiatorToken.

setInitiatorToken

public void setInitiatorToken(org.apache.ws.secpolicy.model.Token initiatorToken)
Parameters:
initiatorToken - The initiatorToken to set.

getTransportToken

public org.apache.ws.secpolicy.model.Token getTransportToken()
Returns:
Returns the TransportToken.

setTransportToken

public void setTransportToken(org.apache.ws.secpolicy.model.Token transportToken)
Parameters:
transportToken - The TransportToken to set.

getRecipientToken

public org.apache.ws.secpolicy.model.Token getRecipientToken()
Returns:
Returns the recipientToken.

setRecipientToken

public void setRecipientToken(org.apache.ws.secpolicy.model.Token recipientToken)
Parameters:
recipientToken - The recipientToken to set.

setProtectionToken

public void setProtectionToken(org.apache.ws.secpolicy.model.Token protectionToken)

getSignatureToken

public org.apache.ws.secpolicy.model.Token getSignatureToken()
Returns:
Returns the signatureToken.

setSignatureToken

public void setSignatureToken(org.apache.ws.secpolicy.model.Token signatureToken)
Parameters:
signatureToken - The signatureToken to set.

getSignedEndorsingSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getSignedEndorsingSupportingTokens()
Returns:
Returns the signedEndorsingSupportingToken.

setSignedEndorsingSupportingTokens

public void setSignedEndorsingSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedEndorsingSupportingTokens)
Parameters:
signedEndorsingSupportingTokens - The signedEndorsingSupportingToken to set.

getSignedEndorsingEncryptedSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getSignedEndorsingEncryptedSupportingTokens()
Returns:
Returns the signedEndorsingEncryptedSupportingToken.

setSignedEndorsingEncryptedSupportingTokens

public void setSignedEndorsingEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedEndorsingEncryptedSupportingTokens)
Parameters:
signedEndorsingEncryptedSupportingTokens - The signedEndorsingEncryptedSupportingToken to set.

getSignedSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getSignedSupportingTokens()
Returns:
Returns the signedSupportingToken.

setSignedSupportingTokens

public void setSignedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedSupportingTokens)
Parameters:
signedSupportingTokens - The signedSupportingToken to set.

getSignedEncryptedSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getSignedEncryptedSupportingTokens()
Returns:
Returns the signedEncryptedSupportingToken.

setSignedEncryptedSupportingTokens

public void setSignedEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken signedEncryptedSupportingTokens)
Parameters:
signedEncryptedSupportingTokens - The signedEncryptedSupportingToken to set.

getSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getSupportingTokens()
Returns:
Returns the supportingToken.

setEncryptedSupportingTokens

public void setEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken encryptedSupportingTokens)
Parameters:
encryptedSupportingTokens - The encryptedSupportingToken to set.

getEncryptedSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getEncryptedSupportingTokens()
Returns:
Returns the encryptedSupportingToken.

setEndorsingSupportingTokens

public void setEndorsingSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken endorsingSupportingTokens)
Parameters:
endorsingSupportingTokens - The endorsingSupportingToken to set.

getEndorsingSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getEndorsingSupportingTokens()
Returns:
Returns the endorsingSupportingToken.

setEndorsingEncryptedSupportingTokens

public void setEndorsingEncryptedSupportingTokens(org.apache.ws.secpolicy.model.SupportingToken endorsingEncryptedSupportingTokens)
Parameters:
endorsingEncryptedSupportingTokens - The endorsingEncryptedSupportingToken to set.

getEndorsingEncryptedSupportingTokens

public org.apache.ws.secpolicy.model.SupportingToken getEndorsingEncryptedSupportingTokens()
Returns:
Returns the endorsingEncryptedSupportingToken.

getAlgorithmSuite

public org.apache.ws.secpolicy.model.AlgorithmSuite getAlgorithmSuite()
Returns:
Returns the algorithmSuite.

setAlgorithmSuite

public void setAlgorithmSuite(org.apache.ws.secpolicy.model.AlgorithmSuite algorithmSuite)
Parameters:
algorithmSuite - The algorithmSuite to set.

getTrust10

public org.apache.ws.secpolicy.model.Trust10 getTrust10()
Returns:
Returns the trust10.

setTrust10

public void setTrust10(org.apache.ws.secpolicy.model.Trust10 trust10)
Parameters:
trust10 - The trust10 to set.

setRampartConfig

public void setRampartConfig(RampartConfig rampartConfig)
Parameters:
rampartConfig - The rampartConfig to set.

isTransportBinding

public boolean isTransportBinding()
Returns:
Returns the transportBinding.

setTransportBinding

public void setTransportBinding(boolean transportBinding)
Parameters:
transportBinding - The transportBinding to set.

setSupporttingtokenId

public void setSupporttingtokenId(org.apache.ws.secpolicy.model.Token token,
                                  java.lang.String id,
                                  int type)
                           throws RampartException
Add the given token and id to the map.

Parameters:
token -
id -
Throws:
RampartException

getSupportingTokenID

public java.lang.String getSupportingTokenID(org.apache.ws.secpolicy.model.Token token,
                                             int type)
                                      throws RampartException
Throws:
RampartException

getWss10

public org.apache.ws.secpolicy.model.Wss10 getWss10()

setWss10

public void setWss10(org.apache.ws.secpolicy.model.Wss10 wss10)

getWss11

public org.apache.ws.secpolicy.model.Wss11 getWss11()

setWss11

public void setWss11(org.apache.ws.secpolicy.model.Wss11 wss11)

getIssuerPolicy

public org.apache.neethi.Policy getIssuerPolicy()

setMTOMAssertion

public void setMTOMAssertion(org.apache.axis2.policy.model.MTOMAssertion mtomAssertion)

getMTOMAssertion

public org.apache.axis2.policy.model.MTOMAssertion getMTOMAssertion()

isMTOMSerialize

public boolean isMTOMSerialize()

getOptimizePartsConfig

public OptimizePartsConfig getOptimizePartsConfig()