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 SecurityContext |
createSecurityContext(Principal p) |
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 org.apache.wss4j.dom.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, createSecurityContext, createSecurityEngine, doResults, doResults, getCallback, getCallback, getProperty, getReplayCache, isGET, isNonceCacheRequired, isSamlCacheRequired, isTimestampCacheRequired, setAlgorithmSuites, setIgnoreActions
getAdditionalInterceptors, getAfter, getBefore, getId, getOption, getPassword, getPhase, getProperties, getRoles, getUnderstoodHeaders, handleFault, isRequestor, loadCryptoFromPropertiesFile, postHandleMessage, setId, setPassword, setPhase, setProperties, setProperty, setProperty, translateProperties
checkReceiverResults, 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, loadSignatureVerificationCrypto
public AbstractUsernameTokenAuthenticatingInterceptor()
public void setSupportDigestPasswords(boolean support)
public boolean getSupportDigestPasswords()
public void handleMessage(SoapMessage msg) throws Fault
Interceptor
handleMessage
in interface Interceptor<SoapMessage>
handleMessage
in class WSS4JInInterceptor
Fault
protected SecurityContext createSecurityContext(Principal p)
createSecurityContext
in class WSS4JInInterceptor
protected 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.WSSecurityException
protected 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 timestampSecurityException
protected org.apache.wss4j.dom.WSSecurityEngine getSecurityEngine(boolean utNoCallbacks)
getSecurityEngine
in class WSS4JInInterceptor
Apache CXF