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

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

public class SymmetricBinding
extends com.sun.xml.ws.policy.PolicyAssertion
implements SymmetricBinding, 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
SymmetricBinding()
          Creates a new instance of SymmetricBinding
SymmetricBinding(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
 AlgorithmSuite getAlgorithmSuite()
          returns the AlgorithmSuite assertions defined in the policy.
 Token getEncryptionToken()
          returns the EncryptionToken
 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
 Token getProtectionToken()
          return token to be used for signature and encryption operations.
 SecurityPolicyVersion getSecurityPolicyVersion()
           
 boolean getSignatureProtection()
           
 Token getSignatureToken()
          returns token to be used for Signature operations
 boolean getTokenProtection()
           
 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 setEncryptionToken(Token token)
           
 void setLayout(MessageLayout layout)
           
 void setProtectionOrder(java.lang.String order)
           
 void setProtectionToken(Token token)
           
 void setSignatureProtection(boolean value)
           
 void setSignatureToken(Token token)
           
 void setSignContent(boolean contentOnly)
           
 void setTokenProtection(boolean value)
           
 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

SymmetricBinding

public SymmetricBinding()
Creates a new instance of SymmetricBinding


SymmetricBinding

public SymmetricBinding(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

getEncryptionToken

public Token getEncryptionToken()
Description copied from interface: SymmetricBinding
returns the EncryptionToken

Specified by:
getEncryptionToken in interface SymmetricBinding
Returns:
EncryptionToken

getSignatureToken

public Token getSignatureToken()
Description copied from interface: SymmetricBinding
returns token to be used for Signature operations

Specified by:
getSignatureToken in interface SymmetricBinding
Returns:
SignatureToken

getProtectionToken

public Token getProtectionToken()
Description copied from interface: SymmetricBinding
return token to be used for signature and encryption operations.

Specified by:
getProtectionToken in interface SymmetricBinding
Returns:
ProtectionToken

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

isDisableTimestampSigning

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

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

setEncryptionToken

public void setEncryptionToken(Token token)

setSignatureToken

public void setSignatureToken(Token token)

setProtectionToken

public void setProtectionToken(Token token)

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 value)

setSignatureProtection

public void setSignatureProtection(boolean value)

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

getSecurityPolicyVersion

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