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(org.apache.cxf.binding.soap.SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
WSHandlerResult wsResult,
boolean utWithCallbacks) |
protected WSSecurityEngine |
getSecurityEngine(boolean utNoCallbacks) |
boolean |
getSupportDigestPasswords() |
void |
handleMessage(org.apache.cxf.binding.soap.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, 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(org.apache.cxf.binding.soap.SoapMessage msg) throws Fault
Interceptor
handleMessage
in interface Interceptor<org.apache.cxf.binding.soap.SoapMessage>
handleMessage
in class WSS4JInInterceptor
Fault
protected void doResults(org.apache.cxf.binding.soap.SoapMessage msg, String actor, Element soapHeader, Element soapBody, WSHandlerResult wsResult, boolean utWithCallbacks) throws SOAPException, XMLStreamException, WSSecurityException
doResults
in class WSS4JInInterceptor
SOAPException
XMLStreamException
WSSecurityException
protected SecurityContext doCreateSecurityContext(Principal p, Subject subject)
p
- principalsubject
- subjectprotected void setSubject(String name, String password, boolean isDigest, String nonce, String created) throws WSSecurityException
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 WSSecurityEngine getSecurityEngine(boolean utNoCallbacks)
getSecurityEngine
in class WSS4JInInterceptor
Copyright © 2017 JBoss by Red Hat. All rights reserved.