org.apache.ws.security.policy
Class WSS4JPolicyData

java.lang.Object
  extended byorg.apache.ws.security.policy.WSS4JPolicyData

public class WSS4JPolicyData
extends java.lang.Object


Constructor Summary
WSS4JPolicyData()
           
 
Method Summary
 java.util.ArrayList getEncryptedElements()
           
 java.util.ArrayList getEncryptedParts()
           
 WSS4JPolicyToken getEncryptionToken()
          Return the encryption token data.
 WSS4JPolicyToken getInitiatorToken()
          Return the initiator token data.
 java.lang.String getLayout()
           
 java.lang.String getProtectionOrder()
           
 WSS4JPolicyToken getRecipientToken()
          Return the recipient token data.
 WSS4JPolicyToken getSignatureToken()
          Return the signature token data.
 java.util.ArrayList getSignedElements()
           
 java.util.ArrayList getSignedParts()
           
 boolean isEncryptBody()
           
 boolean isEntireHeaderAndBodySignatures()
           
 boolean isIncludeTimestamp()
           
 boolean isSignatureConfirmation()
           
 boolean isSignatureProtection()
           
 boolean isSignBody()
           
 boolean isSymmetricBinding()
           
 boolean isTokenProtection()
           
 void setEncryptBody(boolean encryptBody)
           
 void setEncryptedElements(java.lang.String encElement)
           
 void setEncryptedParts(java.lang.String namespace, java.lang.String element)
           
 void setEncryptionToken(Token encToken, AlgorithmSuite suite)
          Sets the parameters for the encryption token according to parsed policy.
 void setEntireHeaderAndBodySignatures(boolean entireHeaderAndBodySignatures)
           
 void setIncludeTimestamp(boolean includeTimestamp)
           
 void setInitiatorToken(Token iniToken, AlgorithmSuite suite)
          Sets the parameters for the initiator token according to parsed policy.
 void setLayout(java.lang.String layout)
           
 void setProtectionOrder(java.lang.String protectionOrder)
           
 void setProtectionToken(Token protectionToken, AlgorithmSuite suite)
          Sets the parameters for the protection token according to parsed policy.
 void setRecipientToken(Token recToken, AlgorithmSuite suite)
          Sets the parameters for the initiator token according to parsed policy.
 void setSignatureConfirmation(boolean signatureConfirmation)
           
 void setSignatureProtection(boolean signatureProtection)
           
 void setSignatureToken(Token sigToken, AlgorithmSuite suite)
          Sets the parameters for the signature token according to parsed policy.
 void setSignBody(boolean signBody)
           
 void setSignedElements(java.lang.String sigElement)
           
 void setSignedParts(java.lang.String namespace, java.lang.String element)
           
 void setSupportingToken(SupportingToken suppToken)
           
 void setSymmetricBinding(boolean symmetricBinding)
           
 void setTokenProtection(boolean tokenProtection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSS4JPolicyData

public WSS4JPolicyData()
Method Detail

isSymmetricBinding

public boolean isSymmetricBinding()
Returns:
Returns the symmetricBinding.

setSymmetricBinding

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

isEntireHeaderAndBodySignatures

public boolean isEntireHeaderAndBodySignatures()
Returns:
Returns the entireHeaderAndBodySignatures.

setEntireHeaderAndBodySignatures

public void setEntireHeaderAndBodySignatures(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.

getEncryptionToken

public WSS4JPolicyToken getEncryptionToken()
Return the encryption token data. The returned token data may be empty.

Returns:
Returns the encryptionToken.

setEncryptionToken

public void setEncryptionToken(Token encToken,
                               AlgorithmSuite suite)
                        throws WSSPolicyException
Sets the parameters for the encryption token according to parsed policy. The encryption token is specific to the symmetric binding.

Throws:
WSSPolicyException

setProtectionToken

public void setProtectionToken(Token protectionToken,
                               AlgorithmSuite suite)
                        throws WSSPolicyException
Sets the parameters for the protection token according to parsed policy. The protection token is specific to the symmetric binding.

Parameters:
protectionToken - The protectionToken to set.
Throws:
WSSPolicyException

getSignatureToken

public WSS4JPolicyToken getSignatureToken()
Return the signature token data. The returned token data may be empty.

Returns:
Returns the signatureToken.

setSignatureToken

public void setSignatureToken(Token sigToken,
                              AlgorithmSuite suite)
                       throws WSSPolicyException
Sets the parameters for the signature token according to parsed policy. The signature token is specific to the symmetric binding.

Throws:
WSSPolicyException

getInitiatorToken

public WSS4JPolicyToken getInitiatorToken()
Return the initiator token data. The returned token data may be empty.

Returns:
Returns the initiatorToken.

setInitiatorToken

public void setInitiatorToken(Token iniToken,
                              AlgorithmSuite suite)
                       throws WSSPolicyException
Sets the parameters for the initiator token according to parsed policy. The initiator token is specific to the symmetric binding. The message initiator uses this token to sign its data. Thus this method initializes the signature relevant parts of the WSS4JPolicyToken data.

Throws:
WSSPolicyException

getRecipientToken

public WSS4JPolicyToken getRecipientToken()
Return the recipient token data. The returned token data may be empty.

Returns:
Returns the recipientToken.

setRecipientToken

public void setRecipientToken(Token recToken,
                              AlgorithmSuite suite)
                       throws WSSPolicyException
Sets the parameters for the initiator token according to parsed policy. The initiator token is specific to the symmetric binding. The message initiator uses this token to encrypt data sent to the reipient. Thus this method initializes the encryption relevant parts of the WSS4JPolicyToken data.

Throws:
WSSPolicyException

getEncryptedElements

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

setEncryptedElements

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

getEncryptedParts

public java.util.ArrayList 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.

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.

getSignedElements

public java.util.ArrayList 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.ArrayList getSignedParts()
Returns:
Returns the signedParts.

setSignedParts

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

setSupportingToken

public void setSupportingToken(SupportingToken suppToken)
                        throws WSSPolicyException
Throws:
WSSPolicyException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.