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
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionvoidaddTransportToken(Token token) returns theAlgorithmSuiteassertions defined in the policy.returns the LayoutMessageLayoutof the SecurityHeader.gets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGNbooleanbooleanget the Transport token , eg: HttpsTokenvoidincludeTimeStamp(boolean value) booleanbooleanreturns true if TimeStamp property is enabled in this bindingbooleanreturns 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) 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, getImplementation, getName, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
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
-
getTransportToken
Description copied from interface:TransportBindingget the Transport token , eg: HttpsToken- Specified by:
getTransportTokenin interfaceTransportBinding
-
setAlgorithmSuite
-
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
-
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
-
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
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
- Specified by:
getSecurityPolicyVersionin interfaceBinding- Returns:
- the version of Security Policy
-