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

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

public class AsymmetricBinding
extends com.sun.xml.ws.policy.PolicyAssertion
implements AsymmetricBinding, 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
AsymmetricBinding()
          Creates a new instance of AsymmetricBinding
AsymmetricBinding(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 getInitiatorToken()
          returns Initiator token
 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 getRecipientToken()
          returns Recipient token
 SecurityPolicyVersion getSecurityPolicyVersion()
           
 boolean getSignatureProtection()
           
 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 setInitiatorToken(Token token)
           
 void setLayout(MessageLayout layout)
           
 void setProtectionOrder(java.lang.String order)
           
 void setRecipientToken(Token token)
           
 void setSignatureProtection(boolean value)
           
 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

AsymmetricBinding

public AsymmetricBinding()
Creates a new instance of AsymmetricBinding


AsymmetricBinding

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

getRecipientToken

public Token getRecipientToken()
Description copied from interface: AsymmetricBinding
returns Recipient token

Specified by:
getRecipientToken in interface AsymmetricBinding
Returns:
X509Token

getInitiatorToken

public Token getInitiatorToken()
Description copied from interface: AsymmetricBinding
returns Initiator token

Specified by:
getInitiatorToken in interface AsymmetricBinding
Returns:
X509Token

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

setInitiatorToken

public void setInitiatorToken(Token token)

setRecipientToken

public void setRecipientToken(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