public class UsernameTokenInterceptor extends AbstractTokenInterceptor
Constructor and Description |
---|
UsernameTokenInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToken(org.apache.cxf.binding.soap.SoapMessage message) |
protected WSSecUsernameToken |
addUsernameToken(org.apache.cxf.binding.soap.SoapMessage message,
UsernameToken token) |
protected UsernameToken |
assertTokens(org.apache.cxf.binding.soap.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(org.apache.cxf.binding.soap.SoapMessage message) |
protected UsernameTokenPrincipal |
parseTokenAndCreatePrincipal(Element tokenElement,
boolean bspCompliant) |
protected void |
processToken(org.apache.cxf.binding.soap.SoapMessage message) |
protected WSSecurityEngineResult |
validateToken(Element tokenElement,
org.apache.cxf.binding.soap.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(org.apache.cxf.binding.soap.SoapMessage message)
processToken
in class AbstractTokenInterceptor
protected WSSecurityEngineResult validateToken(Element tokenElement, org.apache.cxf.binding.soap.SoapMessage message) throws WSSecurityException, org.apache.xml.security.exceptions.Base64DecodingException
WSSecurityException
org.apache.xml.security.exceptions.Base64DecodingException
protected UsernameTokenPrincipal parseTokenAndCreatePrincipal(Element tokenElement, boolean bspCompliant) throws WSSecurityException, org.apache.xml.security.exceptions.Base64DecodingException
WSSecurityException
org.apache.xml.security.exceptions.Base64DecodingException
protected boolean isWsiBSPCompliant(org.apache.cxf.binding.soap.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 UsernameToken assertTokens(org.apache.cxf.binding.soap.SoapMessage message)
assertTokens
in class AbstractTokenInterceptor
protected void addToken(org.apache.cxf.binding.soap.SoapMessage message)
addToken
in class AbstractTokenInterceptor
protected WSSecUsernameToken addUsernameToken(org.apache.cxf.binding.soap.SoapMessage message, UsernameToken token)
Copyright © 2016 JBoss by Red Hat. All rights reserved.