Class PolicyInputProcessor
java.lang.Object
org.apache.xml.security.stax.ext.AbstractInputProcessor
org.apache.wss4j.policy.stax.enforcer.PolicyInputProcessor
- All Implemented Interfaces:
org.apache.xml.security.stax.ext.InputProcessor
public class PolicyInputProcessor
extends org.apache.xml.security.stax.ext.AbstractInputProcessor
Processor to generate SecurityEvents regarding not secured elements
-
Constructor Summary
ConstructorsConstructorDescriptionPolicyInputProcessor(PolicyEnforcer policyEnforcer, org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFinal(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) protected StringgetId(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent) protected voidinit(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) org.apache.xml.security.stax.ext.stax.XMLSecEventprocessEvent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) org.apache.xml.security.stax.ext.stax.XMLSecEventprocessHeaderEvent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
Constructor Details
-
PolicyInputProcessor
public PolicyInputProcessor(PolicyEnforcer policyEnforcer, org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties)
-
-
Method Details
-
processHeaderEvent
public org.apache.xml.security.stax.ext.stax.XMLSecEvent processHeaderEvent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) throws XMLStreamException, org.apache.xml.security.exceptions.XMLSecurityException - Throws:
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityException
-
processEvent
public org.apache.xml.security.stax.ext.stax.XMLSecEvent processEvent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) throws XMLStreamException, org.apache.xml.security.exceptions.XMLSecurityException - Throws:
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityException
-
doFinal
public void doFinal(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) throws XMLStreamException, org.apache.xml.security.exceptions.XMLSecurityException - Specified by:
doFinalin interfaceorg.apache.xml.security.stax.ext.InputProcessor- Overrides:
doFinalin classorg.apache.xml.security.stax.ext.AbstractInputProcessor- Throws:
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityException
-
getId
-
init
protected void init(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain)
-