Class TransportBinding

java.lang.Object
com.sun.xml.ws.policy.PolicyAssertion
com.sun.xml.ws.security.impl.policy.TransportBinding
All Implemented Interfaces:
Binding, SecurityAssertionValidator, TransportBinding

public class TransportBinding extends com.sun.xml.ws.policy.PolicyAssertion implements TransportBinding, SecurityAssertionValidator
Author:
K.Venugopal@sun.com
  • Constructor Details

    • TransportBinding

      public TransportBinding()
      Creates a new instance of TransportBinding
    • TransportBinding

      public TransportBinding(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
  • Method Details

    • addTransportToken

      public void addTransportToken(Token token)
    • getTransportToken

      public Token getTransportToken()
      Description copied from interface: TransportBinding
      get the Transport token , eg: HttpsToken
      Specified by:
      getTransportToken in interface TransportBinding
    • setAlgorithmSuite

      public void setAlgorithmSuite(AlgorithmSuite algSuite)
    • getAlgorithmSuite

      public AlgorithmSuite getAlgorithmSuite()
      Description copied from interface: Binding
      returns the AlgorithmSuite assertions defined in the policy.
      Specified by:
      getAlgorithmSuite in interface Binding
      Returns:
      AlgorithmSuite
    • includeTimeStamp

      public void includeTimeStamp(boolean value)
    • isIncludeTimeStamp

      public boolean isIncludeTimeStamp()
      Description copied from interface: Binding
      returns true if TimeStamp property is enabled in this binding
      Specified by:
      isIncludeTimeStamp in interface Binding
      Returns:
      true or false
    • setLayout

      public void setLayout(MessageLayout layout)
    • getLayout

      public MessageLayout getLayout()
      Description copied from interface: Binding
      returns the Layout MessageLayoutof the SecurityHeader.
      Specified by:
      getLayout in interface Binding
      Returns:
      one of MessageLayout
    • isSignContent

      public boolean isSignContent()
      Description copied from interface: Binding
      returns true if body and header content only has to be signed, false if entire body and header has to be signed.
      Specified by:
      isSignContent in interface Binding
      Returns:
      true if body and header content only has to be signed, false if entire body and header has to be signed.
    • setSignContent

      public void setSignContent(boolean contentOnly)
    • setProtectionOrder

      public void setProtectionOrder(String order)
    • getProtectionOrder

      public String getProtectionOrder()
      Description copied from interface: Binding
      gets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGN
      Specified by:
      getProtectionOrder in interface Binding
      Returns:
      one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGN
    • setTokenProtection

      public void setTokenProtection(boolean token)
    • setSignatureProtection

      public void setSignatureProtection(boolean token)
    • getTokenProtection

      public boolean getTokenProtection()
      Specified by:
      getTokenProtection in interface Binding
      Returns:
      true if token has to be protected else false.
    • getSignatureProtection

      public boolean getSignatureProtection()
      Specified by:
      getSignatureProtection in interface Binding
      Returns:
      true if signature has to be encrypted else false.
    • validate

      public SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
      Description copied from interface: SecurityAssertionValidator
      returns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.
      Specified by:
      validate in interface SecurityAssertionValidator
    • isDisableTimestampSigning

      public boolean isDisableTimestampSigning()
      Specified by:
      isDisableTimestampSigning in interface Binding
    • getSecurityPolicyVersion

      public SecurityPolicyVersion getSecurityPolicyVersion()
      Specified by:
      getSecurityPolicyVersion in interface Binding
      Returns:
      the version of Security Policy