com.sun.xml.ws.security.impl.policy
Class TransportBinding

java.lang.Object
  extended by com.sun.xml.ws.policy.PolicyAssertion
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.xml.ws.security.policy.SecurityAssertionValidator
SecurityAssertionValidator.AssertionFitness
 
Field Summary
 
Fields inherited from interface com.sun.xml.ws.security.policy.Binding
ENCRYPT_SIGN, SIGN_ENCRYPT
 
Constructor Summary
TransportBinding()
          Creates a new instance of TransportBinding
TransportBinding(com.sun.xml.ws.policy.sourcemodel.AssertionData name, java.util.Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
           
 
Method Summary
 void addTransportToken(Token token)
           
 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()
           
 Token getTransportToken()
          get the Transport token , eg: HttpsToken
 void includeTimeStamp(boolean value)
           
 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.
 void setAlgorithmSuite(AlgorithmSuite algSuite)
           
 void setLayout(MessageLayout layout)
           
 void setProtectionOrder(java.lang.String order)
           
 void setSignatureProtection(boolean token)
           
 void setSignContent(boolean contentOnly)
           
 void setTokenProtection(boolean token)
           
 SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
          returns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.
 
Methods inherited from class com.sun.xml.ws.policy.PolicyAssertion
equals, getAttributes, getAttributesSet, getAttributeValue, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransportBinding

public TransportBinding()
Creates a new instance of TransportBinding


TransportBinding

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

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
Returns:

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(java.lang.String order)

getProtectionOrder

public java.lang.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