| java.lang.Object com.sun.xml.ws.policy.PolicyAssertion
All known Subclasses: com.sun.xml.ws.security.impl.policy.Token, com.sun.xml.ws.security.impl.policy.SymmetricBinding, com.sun.xml.ws.security.impl.policy.BootstrapPolicy, com.sun.xml.ws.security.impl.policy.UsernameToken, com.sun.xml.ws.addressing.impl.policy.EndpointReference, com.sun.xml.ws.policy.SimpleAssertion, com.sun.xml.ws.security.impl.policy.CallbackHandler, com.sun.xml.ws.security.impl.policy.AlgorithmSuite, com.sun.xml.ws.security.impl.policy.SupportingTokens, com.sun.xml.ws.security.impl.policy.Validator, com.sun.xml.ws.security.impl.policy.HttpsToken, com.sun.xml.ws.security.impl.policy.Wss11, com.sun.xml.ws.security.impl.policy.Issuer, com.sun.xml.ws.security.impl.policy.EncryptedParts, com.sun.xml.ws.security.impl.policy.EncryptedElements, com.sun.xml.ws.security.impl.policy.SecurityContextToken, com.sun.xml.ws.security.impl.policy.AsymmetricBinding, com.sun.xml.ws.addressing.impl.policy.Address, com.sun.xml.ws.security.impl.policy.X509Token, com.sun.xml.ws.policy.ComplexAssertion, com.sun.xml.ws.security.impl.policy.SignedParts, com.sun.xml.ws.security.impl.policy.Header, com.sun.xml.ws.security.impl.policy.KeyStore, com.sun.xml.ws.security.impl.policy.SecureConversationToken, com.sun.xml.ws.security.impl.policy.Wss10, com.sun.xml.ws.security.impl.policy.RequiredElements, com.sun.xml.ws.security.impl.policy.Lifetime, com.sun.xml.ws.security.impl.policy.SpnegoContextToken, com.sun.xml.ws.security.impl.policy.Trust10, com.sun.xml.ws.security.impl.policy.KerberosToken, com.sun.xml.ws.security.impl.policy.SamlToken, com.sun.xml.ws.security.impl.policy.CertStoreConfig, com.sun.xml.ws.security.impl.policy.SignedElements, com.sun.xml.ws.security.impl.policy.RelToken, com.sun.xml.ws.security.impl.policy.ValidatorConfiguration, com.sun.xml.ws.security.impl.policy.CallbackHandlerConfiguration, com.sun.xml.ws.security.impl.policy.TransportBinding, com.sun.xml.ws.security.impl.policy.RequestSecurityTokenTemplate, com.sun.xml.ws.security.impl.policy.Layout, com.sun.xml.ws.security.impl.policy.UseKey, com.sun.xml.ws.security.impl.policy.IssuedToken, com.sun.xml.ws.security.impl.policyconv.SCTokenWrapper,
PolicyAssertion | abstract public class PolicyAssertion (Code) | | Base class for any policy assertion implementations. It defines the common
interface and provides some default implentation for common policy assertion
functionality.
NOTE: Assertion implementers should not extend this class directly.
SimpleAssertion
or
ComplexAssertion should be used as a base class instead.
author: Marek Potociar (marek.potociar at sun.com) |
Constructor Summary | |
protected | PolicyAssertion() | protected | PolicyAssertion(AssertionData assertionData, Collection<? extends PolicyAssertion> assertionParameters, AssertionSet nestedAlternative) Creates generic assertionand stores the data specified in input parameters
Parameters: assertionData - assertion creation data specifying the details of newly created assertion. | protected | PolicyAssertion(AssertionData assertionData, Collection<? extends PolicyAssertion> assertionParameters) Creates generic assertionand stores the data specified in input parameters
Parameters: assertionData - assertion creation data specifying the details of newly created assertion Parameters: assertionParameters - collection of assertions parameters of this policy assertion. |
Method Summary | |
public boolean | equals(Object obj) An
Object.equals(Object obj) method override. | final public String | getAttributeValue(QName name) Returns the value of an attribute. | final public Map<QName, String> | getAttributes() Returns the disconnected map of attributes attached to the assertion.
'Disconnected' means, that the result of this method will not be synchronized with any consequent assertion's attribute modification. | final public Set<Map.Entry<QName, String>> | getAttributesSet() Returns the disconnected set of attributes attached to the assertion. | final public QName | getName() Returns the fully qualified name of the assertion. | final public Iterator<PolicyAssertion> | getNestedAssertionsIterator() Returns the assertion's parameter collection iterator. | public NestedPolicy | getNestedPolicy() Returns the nested policy if any.
the nested policy if the assertion contains a nested policy. | final public Iterator<PolicyAssertion> | getParametersIterator() Returns the assertion's parameter collection iterator. | final public String | getValue() Returns the value of the assertion - the character data content contained in the assertion element representation.
assertion's value. | final public boolean | hasNestedAssertions() Returns the boolean information whether this assertion contains any parameters.
true if the assertion contains parameters. | public boolean | hasNestedPolicy() Returns the boolean information whether this assertion contains nested policy.
true if the assertion contains child (nested) policy. | final public boolean | hasParameters() Returns the boolean information whether this assertion contains any parameters.
true if the assertion contains parameters. | public int | hashCode() An
Object.hashCode() method override. | boolean | isCompatibleWith(PolicyAssertion assertion, PolicyIntersector.CompatibilityMode mode) Checks whether this policy alternative is compatible with the provided policy alternative. | public boolean | isIgnorable() Method specifies whether the assertion is ignorable or not.
This is a default implementation that may be overriden. | public boolean | isOptional() Method specifies whether the assertion is otpional or not.
This is a default implementation that may be overriden. | boolean | isParameter() | final public boolean | isPrivate() Method specifies whether the assertion is private or not. | public String | toString() An
Object.toString() method override. | protected StringBuffer | toString(int indentLevel, StringBuffer buffer) A helper method that appends indented string representation of this instance to the input string buffer. |
PolicyAssertion | protected PolicyAssertion()(Code) | | |
PolicyAssertion | protected PolicyAssertion(AssertionData assertionData, Collection<? extends PolicyAssertion> assertionParameters, AssertionSet nestedAlternative)(Code) | | Creates generic assertionand stores the data specified in input parameters
Parameters: assertionData - assertion creation data specifying the details of newly created assertion. May be null . Parameters: assertionParameters - collection of assertions parameters of this policy assertion. May be null . Parameters: nestedAlternative - assertion set specifying nested policy alternative. May be null . |
PolicyAssertion | protected PolicyAssertion(AssertionData assertionData, Collection<? extends PolicyAssertion> assertionParameters)(Code) | | Creates generic assertionand stores the data specified in input parameters
Parameters: assertionData - assertion creation data specifying the details of newly created assertion Parameters: assertionParameters - collection of assertions parameters of this policy assertion. May be null . |
equals | public boolean equals(Object obj)(Code) | | An
Object.equals(Object obj) method override.
|
getAttributeValue | final public String getAttributeValue(QName name)(Code) | | Returns the value of an attribute. Returns null if an attribute with the given name does not exist.
Parameters: name - The fully qualified name of the attribute The value of the attribute. Returns null if there is no such attribute or if it's value is null. |
getAttributes | final public Map<QName, String> getAttributes()(Code) | | Returns the disconnected map of attributes attached to the assertion.
'Disconnected' means, that the result of this method will not be synchronized with any consequent assertion's attribute modification. It is
also important to notice that a manipulation with returned set of attributes will not have any effect on the actual assertion's
attributes.
disconnected map of attributes attached to the assertion. |
getAttributesSet | final public Set<Map.Entry<QName, String>> getAttributesSet()(Code) | | Returns the disconnected set of attributes attached to the assertion. Each attribute is represented as a single
Map.Entry element.
'Disconnected' means, that the result of this method will not be synchronized with any consequent assertion's attribute modification. It is
also important to notice that a manipulation with returned set of attributes will not have any effect on the actual assertion's
attributes.
disconected set of attributes attached to the assertion. |
getName | final public QName getName()(Code) | | Returns the fully qualified name of the assertion.
assertion's fully qualified name. |
getNestedAssertionsIterator | final public Iterator<PolicyAssertion> getNestedAssertionsIterator()(Code) | | Returns the assertion's parameter collection iterator.
the assertion's parameter collection iterator. |
getNestedPolicy | public NestedPolicy getNestedPolicy()(Code) | | Returns the nested policy if any.
the nested policy if the assertion contains a nested policy. Returns null otherwise. |
getParametersIterator | final public Iterator<PolicyAssertion> getParametersIterator()(Code) | | Returns the assertion's parameter collection iterator.
the assertion's parameter collection iterator. |
getValue | final public String getValue()(Code) | | Returns the value of the assertion - the character data content contained in the assertion element representation.
assertion's value. May return null if there is no value set for the assertion. |
hasNestedAssertions | final public boolean hasNestedAssertions()(Code) | | Returns the boolean information whether this assertion contains any parameters.
true if the assertion contains parameters. Returns false otherwise. |
hasNestedPolicy | public boolean hasNestedPolicy()(Code) | | Returns the boolean information whether this assertion contains nested policy.
true if the assertion contains child (nested) policy. Returns false otherwise. |
hasParameters | final public boolean hasParameters()(Code) | | Returns the boolean information whether this assertion contains any parameters.
true if the assertion contains parameters. Returns false otherwise. |
hashCode | public int hashCode()(Code) | | An
Object.hashCode() method override.
|
isCompatibleWith | boolean isCompatibleWith(PolicyAssertion assertion, PolicyIntersector.CompatibilityMode mode)(Code) | | Checks whether this policy alternative is compatible with the provided policy alternative.
Parameters: assertion - policy alternative used for compatibility test Parameters: mode - compatibility mode to be used true if the two policy alternatives are compatible, false otherwise |
isIgnorable | public boolean isIgnorable()(Code) | | Method specifies whether the assertion is ignorable or not.
This is a default implementation that may be overriden. The method returns
true if the
wsp:Ignorable attribute
is present on the assertion and its value is
'true' . Otherwise the method returns
false .
'true' if the assertion is ignorable. Returns false otherwise. |
isOptional | public boolean isOptional()(Code) | | Method specifies whether the assertion is otpional or not.
This is a default implementation that may be overriden. The method returns
true if the
wsp:optional attribute
is present on the assertion and its value is
'true' . Otherwise the method returns
false .
'true' if the assertion is optional. Returns false otherwise. |
isParameter | boolean isParameter()(Code) | | |
isPrivate | final public boolean isPrivate()(Code) | | Method specifies whether the assertion is private or not. This is specified by our proprietary visibility element.
'true' if the assertion is marked as private (i.e. should not be marshalled int generated WSDL documents). Returns false otherwise. |
toString | public String toString()(Code) | | An
Object.toString() method override.
|
toString | protected StringBuffer toString(int indentLevel, StringBuffer buffer)(Code) | | A helper method that appends indented string representation of this instance to the input string buffer.
Parameters: indentLevel - indentation level to be used. Parameters: buffer - buffer to be used for appending string representation of this instance modified buffer containing new string representation of the instance |
|
|