Apache CXF API

org.apache.cxf.ws.security.policy.builders
Class HttpsTokenBuilder

java.lang.Object
  extended by org.apache.cxf.ws.security.policy.builders.HttpsTokenBuilder
All Implemented Interfaces:
AssertionBuilder

public class HttpsTokenBuilder
extends Object
implements AssertionBuilder

This is a standard assertion builder implementation for the https token as specified by the ws security policy 1.2 specification. In order for this builder to be used it is required that the security policy namespace uri is SP12Constants.SP_NS The builder will handle

alternatives in the HttpsToken considering both cases whether the policy is normalized or not.


Constructor Summary
HttpsTokenBuilder(PolicyBuilder b)
           
 
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.
 List<QName> getKnownElements()
          Returns a collection of QNames describing the xml schema types for which this builder can build assertions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsTokenBuilder

public HttpsTokenBuilder(PolicyBuilder b)
Method Detail

build

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

Specified by:
build in interface AssertionBuilder
Parameters:
element - the element from which to build an assertion
Returns:
an Assertion built from the given element

getKnownElements

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

Specified by:
getKnownElements in interface AssertionBuilder
Returns:
collection of QNames of known schema types

buildCompatible

public PolicyAssertion buildCompatible(PolicyAssertion a,
                                       PolicyAssertion b)
Description copied from interface: AssertionBuilder
Returns a new assertion that is compatible with the two specified assertions or null if no compatible assertion can be built.

Specified by:
buildCompatible in interface AssertionBuilder

Apache CXF API

Apache CXF