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
-
-
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
Constructors Constructor Description TransportBinding()Creates a new instance of TransportBindingTransportBinding(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTransportToken(com.sun.xml.ws.security.policy.Token token)AlgorithmSuitegetAlgorithmSuite()returns theAlgorithmSuiteassertions defined in the policy.MessageLayoutgetLayout()returns the LayoutMessageLayoutof the SecurityHeader.StringgetProtectionOrder()gets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGNcom.sun.xml.ws.security.policy.SecurityPolicyVersiongetSecurityPolicyVersion()booleangetSignatureProtection()booleangetTokenProtection()com.sun.xml.ws.security.policy.TokengetTransportToken()get the Transport token , eg: HttpsTokenvoidincludeTimeStamp(boolean value)booleanisDisableTimestampSigning()booleanisIncludeTimeStamp()returns true if TimeStamp property is enabled in this bindingbooleanisSignContent()returns true if body and header content only has to be signed, false if entire body and header has to be signed.voidsetAlgorithmSuite(AlgorithmSuite algSuite)voidsetLayout(MessageLayout layout)voidsetProtectionOrder(String order)voidsetSignatureProtection(boolean token)voidsetSignContent(boolean contentOnly)voidsetTokenProtection(boolean token)SecurityAssertionValidator.AssertionFitnessvalidate(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, getImplementation, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
addTransportToken
public void addTransportToken(com.sun.xml.ws.security.policy.Token token)
-
getTransportToken
public com.sun.xml.ws.security.policy.Token getTransportToken()
Description copied from interface:TransportBindingget the Transport token , eg: HttpsToken- Specified by:
getTransportTokenin interfaceTransportBinding- Returns:
-
setAlgorithmSuite
public void setAlgorithmSuite(AlgorithmSuite algSuite)
-
getAlgorithmSuite
public AlgorithmSuite getAlgorithmSuite()
Description copied from interface:Bindingreturns theAlgorithmSuiteassertions defined in the policy.- Specified by:
getAlgorithmSuitein interfaceBinding- Returns:
AlgorithmSuite
-
includeTimeStamp
public void includeTimeStamp(boolean value)
-
isIncludeTimeStamp
public boolean isIncludeTimeStamp()
Description copied from interface:Bindingreturns true if TimeStamp property is enabled in this binding- Specified by:
isIncludeTimeStampin interfaceBinding- Returns:
- true or false
-
setLayout
public void setLayout(MessageLayout layout)
-
getLayout
public MessageLayout getLayout()
Description copied from interface:Bindingreturns the LayoutMessageLayoutof the SecurityHeader.- Specified by:
getLayoutin interfaceBinding- Returns:
- one of
MessageLayout
-
isSignContent
public boolean isSignContent()
Description copied from interface:Bindingreturns true if body and header content only has to be signed, false if entire body and header has to be signed.- Specified by:
isSignContentin interfaceBinding- 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:Bindinggets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGN- Specified by:
getProtectionOrderin interfaceBinding- 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:
getTokenProtectionin interfaceBinding- Returns:
- true if token has to be protected else false.
-
getSignatureProtection
public boolean getSignatureProtection()
- Specified by:
getSignatureProtectionin interfaceBinding- Returns:
- true if signature has to be encrypted else false.
-
validate
public SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
Description copied from interface:SecurityAssertionValidatorreturns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.- Specified by:
validatein interfaceSecurityAssertionValidator
-
isDisableTimestampSigning
public boolean isDisableTimestampSigning()
- Specified by:
isDisableTimestampSigningin interfaceBinding
-
getSecurityPolicyVersion
public com.sun.xml.ws.security.policy.SecurityPolicyVersion getSecurityPolicyVersion()
- Specified by:
getSecurityPolicyVersionin interfaceBinding- Returns:
- the version of Security Policy
-
-