org.apache.wss4j.policy.stax
Class PolicyEnforcerFactory

java.lang.Object
  extended by org.apache.wss4j.policy.stax.PolicyEnforcerFactory

public class PolicyEnforcerFactory
extends Object

PolicyEnforcerFactory builds a map of all the possible effective Policies and caches them for reuse


Field Summary
protected static org.slf4j.Logger log
           
 
Method Summary
static PolicyEnforcerFactory newInstance(Document document)
           
static PolicyEnforcerFactory newInstance(Document document, List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders)
           
static PolicyEnforcerFactory newInstance(URL wsdlUrl)
           
static PolicyEnforcerFactory newInstance(URL wsdlUrl, List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders)
           
 PolicyEnforcer newPolicyEnforcer(String soapAction, boolean initiator, String roleOrActor, int attachmentCount)
          creates a new PolicyEnforcer instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final transient org.slf4j.Logger log
Method Detail

newInstance

public static PolicyEnforcerFactory newInstance(URL wsdlUrl)
                                         throws org.apache.wss4j.common.WSSPolicyException
Throws:
org.apache.wss4j.common.WSSPolicyException

newInstance

public static PolicyEnforcerFactory newInstance(URL wsdlUrl,
                                                List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders)
                                         throws org.apache.wss4j.common.WSSPolicyException
Throws:
org.apache.wss4j.common.WSSPolicyException

newInstance

public static PolicyEnforcerFactory newInstance(Document document)
                                         throws org.apache.wss4j.common.WSSPolicyException
Throws:
org.apache.wss4j.common.WSSPolicyException

newInstance

public static PolicyEnforcerFactory newInstance(Document document,
                                                List<org.apache.neethi.builders.AssertionBuilder<Element>> customAssertionBuilders)
                                         throws org.apache.wss4j.common.WSSPolicyException
Throws:
org.apache.wss4j.common.WSSPolicyException

newPolicyEnforcer

public PolicyEnforcer newPolicyEnforcer(String soapAction,
                                        boolean initiator,
                                        String roleOrActor,
                                        int attachmentCount)
                                 throws org.apache.wss4j.common.WSSPolicyException
creates a new PolicyEnforcer instance

Parameters:
soapAction - The requested soapAction of the actual request
initiator - Boolean flag to tell the engine if it is running in client or server mode
roleOrActor - 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 message
Returns:
the newly created PolicyEnforcer instance
Throws:
org.apache.wss4j.common.WSSPolicyException


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.