Apache CXF API

org.apache.cxf.ws.policy
Interface AssertionBuilder

All Known Implementing Classes:
AddressingAssertionBuilder, AlgorithmSuiteBuilder, AsymmetricBindingBuilder, ContentEncryptedElementsBuilder, EncryptedElementsBuilder, EncryptedPartsBuilder, HTTPClientAssertionBuilder, HTTPServerAssertionBuilder, HttpsTokenBuilder, InitiatorTokenBuilder, IssuedTokenBuilder, JaxbAssertionBuilder, KeyValueTokenBuilder, LayoutBuilder, MTOMAssertionBuilder, NestedPrimitiveAssertionBuilder, PrimitiveAssertionBuilder, ProtectionTokenBuilder, RecipientTokenBuilder, RequiredElementsBuilder, RequiredPartsBuilder, RMAssertionBuilder, SecureConversationTokenBuilder, SecurityContextTokenBuilder, SignedElementsBuilder, SignedPartsBuilder, SupportingTokens12Builder, SupportingTokensBuilder, SymmetricBindingBuilder, TransportBindingBuilder, TransportTokenBuilder, Trust10Builder, Trust13Builder, UsernameTokenBuilder, WSS10Builder, WSS11Builder, X509TokenBuilder, XMLPrimitiveAssertionBuilder

public interface AssertionBuilder

AssertionBuilder is an interface used to build an Assertion object from a given xml element. Domain Policy authors write custom AssertionBuilders to build Assertions for domain specific assertions. Note that assertions can include nested policy expressions. To build these, it may be necessary to obtain other AssertionBuilders. Concrete implementations should access the AssertionBuilderRegistry as a Bus extension, so the registry need not passed as an argument here.


Method Summary
 PolicyAssertion build(Element element)
          Constructs an assertion from an xml element.
 PolicyAssertion buildCompatible(PolicyAssertion a, PolicyAssertion b)
          Returns a new assertion that is compatible with the two specified assertions or null if no compatible assertion can be built.
 Collection<QName> getKnownElements()
          Returns a collection of QNames describing the xml schema types for which this builder can build assertions.
 

Method Detail

build

PolicyAssertion build(Element element)
Constructs an assertion from an xml element.

Parameters:
element - the element from which to build an assertion
Returns:
an Assertion built from the given element

getKnownElements

Collection<QName> getKnownElements()
Returns a collection of QNames describing the xml schema types for which this builder can build assertions.

Returns:
collection of QNames of known schema types

buildCompatible

PolicyAssertion buildCompatible(PolicyAssertion a,
                                PolicyAssertion b)
Returns a new assertion that is compatible with the two specified assertions or null if no compatible assertion can be built.


Apache CXF API

Apache CXF