Class AsymmetricBinding
- java.lang.Object
-
- com.sun.xml.ws.policy.PolicyAssertion
-
- com.sun.xml.ws.security.impl.policy.AsymmetricBinding
-
- All Implemented Interfaces:
AsymmetricBinding
,Binding
,SecurityAssertionValidator
public class AsymmetricBinding extends PolicyAssertion implements AsymmetricBinding, SecurityAssertionValidator
- Author:
- [email protected]
-
-
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 AsymmetricBinding()
Creates a new instance of AsymmetricBindingAsymmetricBinding(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmSuite
getAlgorithmSuite()
returns theAlgorithmSuite
assertions defined in the policy.Token
getInitiatorEncryptionToken()
returns Initiator tokenToken
getInitiatorSignatureToken()
returns Initiator tokenToken
getInitiatorToken()
returns Initiator tokenMessageLayout
getLayout()
returns the LayoutMessageLayout
of the SecurityHeader.String
getProtectionOrder()
gets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGNToken
getRecipientEncryptionToken()
returns Recipient tokenToken
getRecipientSignatureToken()
returns Recipient tokenToken
getRecipientToken()
returns Recipient tokenSecurityPolicyVersion
getSecurityPolicyVersion()
boolean
getSignatureProtection()
boolean
getTokenProtection()
void
includeTimeStamp(boolean value)
boolean
isDisableTimestampSigning()
boolean
isIncludeTimeStamp()
returns true if TimeStamp property is enabled in this bindingboolean
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
setInitiatorEncryptionToken(Token token)
void
setInitiatorSignatureToken(Token token)
void
setInitiatorToken(Token token)
void
setLayout(MessageLayout layout)
void
setProtectionOrder(String order)
void
setRecipientEncryptionToken(Token token)
void
setRecipientSignatureToken(Token token)
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, getImplementation, getName, getNestedAssertionsIterator, getNestedPolicy, getParametersIterator, getValue, hashCode, hasNestedAssertions, hasNestedPolicy, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
-
-
-
Constructor Detail
-
AsymmetricBinding
public AsymmetricBinding()
Creates a new instance of AsymmetricBinding
-
AsymmetricBinding
public AsymmetricBinding(AssertionData name, Collection<PolicyAssertion> nestedAssertions, AssertionSet nestedAlternative)
-
-
Method Detail
-
getRecipientToken
public Token getRecipientToken()
Description copied from interface:AsymmetricBinding
returns Recipient token- Specified by:
getRecipientToken
in interfaceAsymmetricBinding
- Returns:
X509Token
-
getInitiatorToken
public Token getInitiatorToken()
Description copied from interface:AsymmetricBinding
returns Initiator token- Specified by:
getInitiatorToken
in interfaceAsymmetricBinding
- Returns:
X509Token
-
getRecipientSignatureToken
public Token getRecipientSignatureToken()
Description copied from interface:AsymmetricBinding
returns Recipient token- Specified by:
getRecipientSignatureToken
in interfaceAsymmetricBinding
- Returns:
X509Token
-
getInitiatorSignatureToken
public Token getInitiatorSignatureToken()
Description copied from interface:AsymmetricBinding
returns Initiator token- Specified by:
getInitiatorSignatureToken
in interfaceAsymmetricBinding
- Returns:
X509Token
-
getRecipientEncryptionToken
public Token getRecipientEncryptionToken()
Description copied from interface:AsymmetricBinding
returns Recipient token- Specified by:
getRecipientEncryptionToken
in interfaceAsymmetricBinding
- Returns:
X509Token
-
getInitiatorEncryptionToken
public Token getInitiatorEncryptionToken()
Description copied from interface:AsymmetricBinding
returns Initiator token- Specified by:
getInitiatorEncryptionToken
in interfaceAsymmetricBinding
- Returns:
X509Token
-
setAlgorithmSuite
public void setAlgorithmSuite(AlgorithmSuite algSuite)
-
getAlgorithmSuite
public AlgorithmSuite getAlgorithmSuite()
Description copied from interface:Binding
returns theAlgorithmSuite
assertions defined in the policy.- Specified by:
getAlgorithmSuite
in interfaceBinding
- 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 interfaceBinding
- Returns:
- true or false
-
isDisableTimestampSigning
public boolean isDisableTimestampSigning()
- Specified by:
isDisableTimestampSigning
in interfaceBinding
-
setLayout
public void setLayout(MessageLayout layout)
-
getLayout
public MessageLayout getLayout()
Description copied from interface:Binding
returns the LayoutMessageLayout
of the SecurityHeader.- Specified by:
getLayout
in interfaceBinding
- Returns:
- one of
MessageLayout
-
setInitiatorToken
public void setInitiatorToken(Token token)
-
setRecipientToken
public void setRecipientToken(Token token)
-
setInitiatorSignatureToken
public void setInitiatorSignatureToken(Token token)
-
setRecipientSignatureToken
public void setRecipientSignatureToken(Token token)
-
setInitiatorEncryptionToken
public void setInitiatorEncryptionToken(Token token)
-
setRecipientEncryptionToken
public void setRecipientEncryptionToken(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 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:Binding
gets data protection order should be one one of Binding.SIGN_ENCRYPT or Binding.ENCRYPT_SIGN- Specified by:
getProtectionOrder
in interfaceBinding
- 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 interfaceBinding
- Returns:
- true if token has to be protected else false.
-
getSignatureProtection
public boolean getSignatureProtection()
- Specified by:
getSignatureProtection
in interfaceBinding
- 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 interfaceSecurityAssertionValidator
-
getSecurityPolicyVersion
public SecurityPolicyVersion getSecurityPolicyVersion()
- Specified by:
getSecurityPolicyVersion
in interfaceBinding
- Returns:
- the version of Security Policy
-
-