public class UsernameTokenInterceptor extends AbstractTokenInterceptor
Constructor and Description |
---|
UsernameTokenInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToken(SoapMessage message) |
protected org.apache.wss4j.dom.message.WSSecUsernameToken |
addUsernameToken(SoapMessage message,
org.apache.wss4j.policy.model.UsernameToken token) |
protected org.apache.wss4j.policy.model.UsernameToken |
assertTokens(SoapMessage message) |
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.
|
protected boolean |
isWsiBSPCompliant(SoapMessage message) |
protected org.apache.wss4j.common.principal.UsernameTokenPrincipal |
parseTokenAndCreatePrincipal(Element tokenElement,
boolean bspCompliant) |
protected void |
processToken(SoapMessage message) |
protected org.apache.wss4j.dom.WSSecurityEngineResult |
validateToken(Element tokenElement,
SoapMessage message) |
assertTokens, findSecurityHeader, getPassword, getTokenStore, getUnderstoodHeaders, handleMessage, isTLSInUse, policyNotAsserted, policyNotAsserted
getFaultCodePrefix, getRoles, prepareStackTrace
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleFault
protected void processToken(SoapMessage message)
processToken
in class AbstractTokenInterceptor
protected org.apache.wss4j.dom.WSSecurityEngineResult validateToken(Element tokenElement, SoapMessage message) throws org.apache.wss4j.common.ext.WSSecurityException, org.apache.xml.security.exceptions.Base64DecodingException
org.apache.wss4j.common.ext.WSSecurityException
org.apache.xml.security.exceptions.Base64DecodingException
protected org.apache.wss4j.common.principal.UsernameTokenPrincipal parseTokenAndCreatePrincipal(Element tokenElement, boolean bspCompliant) throws org.apache.wss4j.common.ext.WSSecurityException, org.apache.xml.security.exceptions.Base64DecodingException
org.apache.wss4j.common.ext.WSSecurityException
org.apache.xml.security.exceptions.Base64DecodingException
protected 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 timestampSecurityException
protected org.apache.wss4j.policy.model.UsernameToken assertTokens(SoapMessage message)
assertTokens
in class AbstractTokenInterceptor
protected void addToken(SoapMessage message)
addToken
in class AbstractTokenInterceptor
protected org.apache.wss4j.dom.message.WSSecUsernameToken addUsernameToken(SoapMessage message, org.apache.wss4j.policy.model.UsernameToken token)
Apache CXF