Class PolicyEnforcer

  • All Implemented Interfaces:
    org.apache.xml.security.stax.securityEvent.SecurityEventListener

    public class PolicyEnforcer
    extends Object
    implements org.apache.xml.security.stax.securityEvent.SecurityEventListener
    The PolicyEnforcer verifies the Policy assertions The Assertion will be validated in realtime as far as possible
    • Constructor Detail

      • PolicyEnforcer

        public PolicyEnforcer​(List<OperationPolicy> operationPolicies,
                              String soapAction,
                              boolean initiator,
                              String actorOrRole,
                              int attachmentCount,
                              PolicyAsserter policyAsserter,
                              boolean soap12)
                       throws org.apache.wss4j.common.WSSPolicyException
        Throws:
        org.apache.wss4j.common.WSSPolicyException
    • Method Detail

      • getAssertableForAssertion

        protected List<Assertable> getAssertableForAssertion​(AbstractSecurityAssertion abstractSecurityAssertion)
                                                      throws org.apache.wss4j.common.WSSPolicyException
        Throws:
        org.apache.wss4j.common.WSSPolicyException
      • registerSecurityEvent

        public void registerSecurityEvent​(org.apache.xml.security.stax.securityEvent.SecurityEvent securityEvent)
                                   throws org.apache.wss4j.common.ext.WSSecurityException
        Specified by:
        registerSecurityEvent in interface org.apache.xml.security.stax.securityEvent.SecurityEventListener
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException
      • doFinal

        public void doFinal()
                     throws org.apache.wss4j.common.WSSPolicyException
        the final Policy validation to find a satisfied alternative
        Throws:
        PolicyViolationException - if no alternative could be satisfied
        org.apache.wss4j.common.WSSPolicyException