Class PolicyEnforcerFactory
- java.lang.Object
-
- org.apache.wss4j.policy.stax.enforcer.PolicyEnforcerFactory
-
public class PolicyEnforcerFactory extends Object
PolicyEnforcerFactory builds a map of all the possible effective Policies and caches them for reuse
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Modifier Constructor Description protected
PolicyEnforcerFactory(List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyEnforcerFactory
newInstance(URL wsdlUrl)
static PolicyEnforcerFactory
newInstance(URL wsdlUrl, List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders)
static PolicyEnforcerFactory
newInstance(Document document)
static PolicyEnforcerFactory
newInstance(Document document, List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders)
PolicyEnforcer
newPolicyEnforcer(String soapAction, boolean initiator, String roleOrActor, int attachmentCount, boolean soap12)
creates a new PolicyEnforcer instance
-
-
-
Method Detail
-
newInstance
public static PolicyEnforcerFactory newInstance(URL wsdlUrl) throws WSSPolicyException
- Throws:
WSSPolicyException
-
newInstance
public static PolicyEnforcerFactory newInstance(URL wsdlUrl, List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders) throws WSSPolicyException
- Throws:
WSSPolicyException
-
newInstance
public static PolicyEnforcerFactory newInstance(Document document) throws WSSPolicyException
- Throws:
WSSPolicyException
-
newInstance
public static PolicyEnforcerFactory newInstance(Document document, List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders) throws WSSPolicyException
- Throws:
WSSPolicyException
-
newPolicyEnforcer
public PolicyEnforcer newPolicyEnforcer(String soapAction, boolean initiator, String roleOrActor, int attachmentCount, boolean soap12) throws WSSPolicyException
creates a new PolicyEnforcer instance- Parameters:
soapAction
- The requested soapAction of the actual requestinitiator
- Boolean flag to tell the engine if it is running in client or server moderoleOrActor
- The actor or role of the security processing. Must be set to the same value as WSSSecurityProperties#setActor()attachmentCount
- The number of Attachments received in the messagesoap12
- Whether we are using SOAP 1.2 or not- Returns:
- the newly created PolicyEnforcer instance
- Throws:
WSSPolicyException
-
-