public class SubjectCreatingInterceptor
extends org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
Modifier and Type | Class and Description |
---|---|
protected class |
SubjectCreatingInterceptor.CustomValidator |
Modifier and Type | Field and Description |
---|---|
protected SubjectCreator |
helper |
Constructor and Description |
---|
SubjectCreatingInterceptor() |
SubjectCreatingInterceptor(Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.cxf.security.SecurityContext |
createSecurityContext(Principal p) |
Subject |
createSubject(String name,
String password,
boolean isDigest,
String nonce,
String created) |
protected org.apache.cxf.security.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.engine.WSSecurityEngine |
getSecurityEngine(boolean utNoCallbacks) |
boolean |
getSupportDigestPasswords() |
void |
handleMessage(org.apache.cxf.binding.soap.SoapMessage msg) |
void |
setDecodeNonce(boolean decodeNonce) |
void |
setNonceStore(NonceStore nonceStore) |
void |
setPropagateContext(boolean propagateContext) |
protected void |
setSubject(String name,
String password,
boolean isDigest,
String nonce,
String created) |
void |
setSupportDigestPasswords(boolean support) |
void |
setTimestampThreshold(int timestampThreshold) |
advanceBody, computeAction, configureReplayCaches, createSecurityEngine, 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
protected final SubjectCreator helper
public void setSupportDigestPasswords(boolean support)
public boolean getSupportDigestPasswords()
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage msg) throws org.apache.cxf.interceptor.Fault
handleMessage
in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>
handleMessage
in class org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
org.apache.cxf.interceptor.Fault
protected org.apache.cxf.security.SecurityContext createSecurityContext(Principal p)
protected org.apache.cxf.security.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 org.apache.wss4j.dom.engine.WSSecurityEngine getSecurityEngine(boolean utNoCallbacks)
getSecurityEngine
in class org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
public Subject createSubject(String name, String password, boolean isDigest, String nonce, String created)
public void setPropagateContext(boolean propagateContext)
public void setTimestampThreshold(int timestampThreshold)
public void setNonceStore(NonceStore nonceStore)
public void setDecodeNonce(boolean decodeNonce)
Copyright © 2016 JBoss, by Red Hat. All rights reserved.