com.sun.xml.ws.security.policy
Interface Binding

All Known Subinterfaces:
AsymmetricBinding, SymmetricBinding, TransportBinding
All Known Implementing Classes:
AsymmetricBinding, SymmetricBinding, TransportBinding

public interface Binding

Base Interface for Security Policy Binding assertions, identifies Algorithms that are supported,describes the layout of the security header.


Field Summary
static java.lang.String ENCRYPT_SIGN
           
static java.lang.String SIGN_ENCRYPT
           
 
Method Summary
 AlgorithmSuite getAlgorithmSuite()
          returns the AlgorithmSuite assertions defined in the policy.
 MessageLayout getLayout()
          returns the Layout MessageLayoutof the SecurityHeader.
 java.lang.String getProtectionOrder()
          gets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGN
 SecurityPolicyVersion getSecurityPolicyVersion()
           
 boolean getSignatureProtection()
           
 boolean getTokenProtection()
           
 boolean isDisableTimestampSigning()
           
 boolean isIncludeTimeStamp()
          returns true if TimeStamp property is enabled in this binding
 boolean isSignContent()
          returns true if body and header content only has to be signed, false if entire body and header has to be signed.
 

Field Detail

ENCRYPT_SIGN

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

SIGN_ENCRYPT

static final java.lang.String SIGN_ENCRYPT
See Also:
Constant Field Values
Method Detail

getAlgorithmSuite

AlgorithmSuite getAlgorithmSuite()
returns the AlgorithmSuite assertions defined in the policy.

Returns:
AlgorithmSuite

isIncludeTimeStamp

boolean isIncludeTimeStamp()
returns true if TimeStamp property is enabled in this binding

Returns:
true or false

isDisableTimestampSigning

boolean isDisableTimestampSigning()

getLayout

MessageLayout getLayout()
returns the Layout MessageLayoutof the SecurityHeader.

Returns:
one of MessageLayout

isSignContent

boolean isSignContent()
returns true if body and header content only has to be signed, false if entire body and header has to be signed.

Returns:
true if body and header content only has to be signed, false if entire body and header has to be signed.

getProtectionOrder

java.lang.String getProtectionOrder()
gets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGN

Returns:
one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGN

getTokenProtection

boolean getTokenProtection()
Returns:
true if token has to be protected else false.

getSignatureProtection

boolean getSignatureProtection()
Returns:
true if signature has to be encrypted else false.

getSecurityPolicyVersion

SecurityPolicyVersion getSecurityPolicyVersion()
Returns:
the version of Security Policy