Skip navigation links
oracle.wsm.policy.util
Class PolicySerializerDeSerializerFactory
java.lang.Object
oracle.wsm.policy.util.PolicySerializerDeSerializerFactory
-
public class PolicySerializerDeSerializerFactory
- extends Object
This class maintains a Map of the Serializer/DeSerializers to be used for serializing/de-serializing a Policy. It provides a plug-in framework to support custom assertion development. Currently the framework is DOM based. The framework currently does not allow overriding serializer/de-serializers for some of the standard elements like wsp:Policy, wsp:All, wsp:ExactlyOne, wsp:PolicyAttachment, orawsp:PolicySet, etc. The framework has the concept of a default Seralizer/DeSerializer. One of the goals of the framework is to reduce the need for writing Serializer/De-Serializers where possible. To faciliate this aspect, the framework defines the concept of Default Serializer/De-Serializer. The "Default" Serializer/De-Serializer can be used when Assertions follow a particular pattern. The framework defines different types of Assertions. These can be currently categorized into the following:
- Simple Assertions
ISimpleAssertion
- Nested Assertions
INestedAssertion
- Composite Assertions
ICompositeAssertion
- Scenario Assertions
IScenarioAssertion
- Step Scenario Assertions
oracle.wsm.policy.model.IStepScenarioAssertion
- Policy
IPolicy
- PolicyReference
IPolicyReference
IAssertion
for more details. The Default Serializer/De-Serializer can be used when Assertions are either of type ISimpleAssertion
or of type INestedAssertion
. Example: Most assertions specified in the WS-SecurityPolicy spec fall into this category. Custom Assertion Development and Serialization/De-Serialization:
- If Custom Assertions fall into the patterns represented by
ISimpleAssertion
or by INestedAssertion
then you do not have to write a Serializer/De-Serializer.
- It is expected that most Custom Assertion will extend the
IScenarioAssertion
interface. In this case Custom Assertion developers will have to write their own Serializer/De-Serializers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOM_POLICY_READER
public static final int DOM_POLICY_READER
-
- See Also:
- Constant Field Values
DOM_POLICY_WRITER
public static final int DOM_POLICY_WRITER
-
- See Also:
- Constant Field Values
PolicySerializerDeSerializerFactory
public PolicySerializerDeSerializerFactory()
getPolicyReader
public static IPolicyReader getPolicyReader(int type)
getPolicyWriter
public static IPolicyWriter getPolicyWriter(int type)
Skip navigation links
Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.