public abstract class AbstractUsernameTokenAuthenticatingInterceptor extends WSS4JInInterceptor
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractUsernameTokenAuthenticatingInterceptor.CustomValidator |
PROCESSOR_MAP, SAML_ROLE_ATTRIBUTENAME_DEFAULT, SECURITY_PROCESSED, VALIDATOR_MAP| Constructor and Description |
|---|
AbstractUsernameTokenAuthenticatingInterceptor() |
AbstractUsernameTokenAuthenticatingInterceptor(Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Subject |
createSubject(String name,
String password,
boolean isDigest,
String nonce,
String created)
Create a Subject representing a current user and its roles.
|
protected SecurityContext |
doCreateSecurityContext(Principal p,
Subject subject)
Creates default SecurityContext which implements isUserInRole using the
following approach : skip the first Subject principal, and then check optional
Groups the principal is a member of.
|
protected void |
doResults(SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
org.apache.wss4j.dom.handler.WSHandlerResult wsResult,
boolean utWithCallbacks) |
protected org.apache.wss4j.dom.engine.WSSecurityEngine |
getSecurityEngine(boolean utNoCallbacks) |
boolean |
getSupportDigestPasswords() |
void |
handleMessage(SoapMessage msg)
Intercepts a message.
|
protected void |
setSubject(String name,
String password,
boolean isDigest,
String nonce,
String created) |
void |
setSupportDigestPasswords(boolean support) |
advanceBody, computeAction, configureReplayCaches, createSecurityEngine, getCallback, getCallback, getProperty, getReplayCache, isGET, isNonceCacheRequired, isSamlCacheRequired, isTimestampCacheRequired, setAlgorithmSuites, setIgnoreActionsgetAdditionalInterceptors, getAfter, getBefore, getId, getOption, getPassword, getPhase, getProperties, getRoles, getUnderstoodHeaders, handleFault, isRequestor, loadCryptoFromPropertiesFile, postHandleMessage, setId, setPassword, setPhase, setProperties, setProperty, setProperty, translatePropertiescheckReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeAlgorithmSuite, decodeBooleanConfigValue, decodeDecryptionParameter, decodeEncryptionParameter, decodeFutureTimeToLive, decodePasswordType, decodeSignatureParameter, decodeSignatureParameter2, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getPasswordEncryptor, getString, getStringOption, loadCrypto, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, loadSignatureVerificationCryptopublic AbstractUsernameTokenAuthenticatingInterceptor()
public void setSupportDigestPasswords(boolean support)
public boolean getSupportDigestPasswords()
public void handleMessage(SoapMessage msg) throws Fault
InterceptorhandleMessage in interface Interceptor<SoapMessage>handleMessage in class WSS4JInInterceptorFaultprotected void doResults(SoapMessage msg, String actor, Element soapHeader, Element soapBody, org.apache.wss4j.dom.handler.WSHandlerResult wsResult, boolean utWithCallbacks) throws SOAPException, XMLStreamException, org.apache.wss4j.common.ext.WSSecurityException
doResults in class WSS4JInInterceptorSOAPExceptionXMLStreamExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionprotected SecurityContext doCreateSecurityContext(Principal p, Subject subject)
p - principalsubject - subjectprotected void setSubject(String name, String password, boolean isDigest, String nonce, String created) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected abstract 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.wss4j.dom.engine.WSSecurityEngine getSecurityEngine(boolean utNoCallbacks)
getSecurityEngine in class WSS4JInInterceptorApache CXF