public class XmlSecInInterceptor extends AbstractPhaseInterceptor<Message> implements javax.ws.rs.ext.ReaderInterceptor
Constructor and Description |
---|
XmlSecInInterceptor() |
Modifier and Type | Method and Description |
---|---|
Object |
aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext ctx) |
protected org.apache.xml.security.stax.securityEvent.SecurityEventListener |
configureSecurityEventListener(org.apache.wss4j.common.crypto.Crypto sigCrypto,
Message msg,
org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties) |
String |
getDecryptionAlias() |
String |
getSignatureVerificationAlias() |
void |
handleMessage(Message message)
Intercepts a message.
|
boolean |
isRequireEncryption() |
boolean |
isRequireSignature() |
void |
setDecryptionAlias(String decryptionAlias) |
void |
setEncryptionProperties(EncryptionProperties properties) |
void |
setPersistSignature(boolean persist) |
void |
setRequireEncryption(boolean requireEncryption) |
void |
setRequireSignature(boolean requireSignature) |
void |
setSignatureProperties(SignatureProperties properties) |
void |
setSignatureVerificationAlias(String signatureVerificationAlias) |
void |
setSubjectConstraints(List<String> constraints)
Set a list of Strings corresponding to regular expression constraints on the subject DN
of a certificate
|
protected void |
throwFault(String error,
Exception ex) |
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
public void handleMessage(Message message) throws Fault
Interceptor
handleMessage
in interface Interceptor<Message>
Fault
protected org.apache.xml.security.stax.securityEvent.SecurityEventListener configureSecurityEventListener(org.apache.wss4j.common.crypto.Crypto sigCrypto, Message msg, org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties)
public void setEncryptionProperties(EncryptionProperties properties)
public void setSignatureProperties(SignatureProperties properties)
public String getDecryptionAlias()
public void setDecryptionAlias(String decryptionAlias)
public String getSignatureVerificationAlias()
public void setSignatureVerificationAlias(String signatureVerificationAlias)
public void setPersistSignature(boolean persist)
public boolean isRequireSignature()
public void setRequireSignature(boolean requireSignature)
public boolean isRequireEncryption()
public void setRequireEncryption(boolean requireEncryption)
public void setSubjectConstraints(List<String> constraints)
public Object aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext ctx) throws IOException, javax.ws.rs.WebApplicationException
aroundReadFrom
in interface javax.ws.rs.ext.ReaderInterceptor
IOException
javax.ws.rs.WebApplicationException
Apache CXF