public class UsernameTokenInterceptor extends AbstractSoapInterceptor
| Constructor and Description |
|---|
UsernameTokenInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.ws.security.message.WSSecUsernameToken |
addUsernameToken(SoapMessage message,
UsernameToken token) |
protected SecurityContext |
createSecurityContext(Principal p,
Subject subject) |
protected Subject |
createSubject(String name,
String password,
boolean isDigest,
String nonce,
String created)
Create a Subject representing a current user and its roles.
|
String |
getPassword(String userName,
UsernameToken info,
int type,
SoapMessage message) |
protected org.apache.ws.security.WSUsernameTokenPrincipal |
getPrincipal(Element tokenElement,
SoapMessage message) |
Set<QName> |
getUnderstoodHeaders() |
void |
handleMessage(SoapMessage message)
Intercepts a message.
|
protected boolean |
isWsiBSPCompliant(SoapMessage message) |
protected org.apache.ws.security.WSUsernameTokenPrincipal |
parseTokenAndCreatePrincipal(Element tokenElement,
boolean bspCompliant) |
protected void |
policyNotAsserted(UsernameToken assertion,
Exception reason,
SoapMessage message) |
protected void |
policyNotAsserted(UsernameToken assertion,
String reason,
SoapMessage message) |
getFaultCodePrefix, getRoles, prepareStackTraceaddAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBeforeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleFaultpublic Set<QName> getUnderstoodHeaders()
getUnderstoodHeaders in interface SoapInterceptorgetUnderstoodHeaders in class AbstractSoapInterceptorpublic void handleMessage(SoapMessage message) throws Fault
InterceptorFaultprotected org.apache.ws.security.WSUsernameTokenPrincipal getPrincipal(Element tokenElement, SoapMessage message) throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityExceptionprotected org.apache.ws.security.WSUsernameTokenPrincipal parseTokenAndCreatePrincipal(Element tokenElement, boolean bspCompliant) throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityExceptionprotected boolean isWsiBSPCompliant(SoapMessage message)
protected SecurityContext createSecurityContext(Principal p, Subject subject)
protected Subject createSubject(String name, String password, boolean isDigest, String nonce, String created) throws SecurityException
name - usernamepassword - passwordisDigest - true if a password digest is usednonce - optional noncecreated - optional timestampSecurityExceptionprotected org.apache.ws.security.message.WSSecUsernameToken addUsernameToken(SoapMessage message, UsernameToken token)
public String getPassword(String userName, UsernameToken info, int type, SoapMessage message)
protected void policyNotAsserted(UsernameToken assertion, String reason, SoapMessage message)
protected void policyNotAsserted(UsernameToken assertion, Exception reason, SoapMessage message)
Apache CXF