public class SubjectCreatingInterceptor
extends org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
Modifier and Type | Class and Description |
---|---|
protected class |
SubjectCreatingInterceptor.CustomValidator |
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.ws.security.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, createSecurityContext, createSecurityEngine, doResults, doResults, getAdditionalInterceptors, getCallback, getCallback, getProperty, getReplayCache, isGET, isSecurityContextPrincipal, setAlgorithmSuites, setIgnoreActions
getAfter, getBefore, getId, getOption, getPassword, getPhase, getProperties, getRoles, getUnderstoodHeaders, handleFault, isRequestor, loadCryptoFromPropertiesFile, postHandleMessage, setAfter, setBefore, setId, setPassword, setPhase, setProperties, setProperty, setProperty, translateProperties
checkReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeAlgorithmSuite, decodeAllowUsernameTokenNoPassword, decodeBooleanConfigValue, decodeBSPCompliance, decodeCustomPasswordTypes, decodeDecryptionParameter, decodeEnableSignatureConfirmation, decodeEncryptionParameter, decodeFutureTimeToLive, decodeMustUnderstand, decodeNamespaceQualifiedPasswordTypes, decodePasswordType, decodePasswordTypeStrict, decodeRequireSignedEncryptedDataElements, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUseEncodedPasswords, decodeUseSingleCertificate, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getString, getStringOption, loadCrypto, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto
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)
createSecurityContext
in class org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
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.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityException
protected org.apache.ws.security.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 © 2014 JBoss, by Red Hat. All rights reserved.