public abstract class AbstractStaxBindingHandler extends AbstractCommonBindingHandler
Modifier and Type | Field and Description |
---|---|
protected Set<org.apache.xml.security.stax.ext.SecurePart> |
encryptedTokensList |
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> |
endEncSuppTokMap |
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> |
endSuppTokMap |
protected org.apache.xml.security.stax.ext.OutboundSecurityContext |
outboundSecurityContext |
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> |
sgndEndEncSuppTokMap |
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> |
sgndEndSuppTokMap |
protected boolean |
signatureConfirmationAdded |
protected boolean |
timestampAdded |
message
Constructor and Description |
---|
AbstractStaxBindingHandler(org.apache.wss4j.stax.ext.WSSSecurityProperties properties,
SoapMessage msg,
org.apache.wss4j.policy.model.AbstractBinding binding,
org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.xml.security.stax.ext.SecurePart |
addIssuedToken(org.apache.wss4j.policy.model.AbstractToken token,
SecurityToken secToken,
boolean signed,
boolean endorsing) |
protected org.apache.xml.security.stax.ext.SecurePart |
addKerberosToken(org.apache.wss4j.policy.model.KerberosToken token,
boolean signed,
boolean endorsing,
boolean encrypting) |
protected org.apache.xml.security.stax.ext.SecurePart |
addSamlToken(org.apache.wss4j.policy.model.SamlToken token,
boolean signed,
boolean endorsing) |
protected void |
addSignatureConfirmation(List<org.apache.xml.security.stax.ext.SecurePart> sigParts) |
protected void |
addSignatureParts(Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> tokenMap) |
protected void |
addSupportingTokens() |
protected org.apache.xml.security.stax.ext.SecurePart |
addUsernameToken(org.apache.wss4j.policy.model.UsernameToken usernameToken) |
protected void |
configureLayout(AssertionInfoMap aim) |
protected void |
configureSignature(org.apache.wss4j.policy.model.AbstractToken token,
boolean attached) |
protected void |
configureTimestamp(AssertionInfoMap aim) |
protected void |
enforceEncryptBeforeSigningWithSignedSAML() |
protected org.apache.xml.security.stax.securityToken.SecurityToken |
findInboundSecurityToken(org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event event) |
protected List<org.apache.xml.security.stax.ext.SecurePart> |
getEncryptedParts()
Identifies the portions of the message to be encrypted
|
protected org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier |
getKeyIdentifierType(org.apache.wss4j.policy.model.AbstractToken token) |
protected org.apache.wss4j.stax.ext.WSSSecurityProperties |
getProperties() |
protected List<org.apache.xml.security.stax.ext.SecurePart> |
getSignedParts()
Identifies the portions of the message to be signed
|
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> |
handleSupportingTokens(Collection<AssertionInfo> tokenAssertions,
boolean signed,
boolean endorse) |
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> |
handleSupportingTokens(org.apache.wss4j.policy.model.SupportingTokens suppTokens,
boolean signed,
boolean endorse) |
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> |
handleSupportingTokens(org.apache.wss4j.policy.model.SupportingTokens suppTokens,
boolean signed,
boolean endorse,
Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> ret) |
protected void |
handleUsernameTokenSupportingToken(org.apache.wss4j.policy.model.UsernameToken token,
boolean endorse,
boolean encryptedToken,
Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> ret) |
protected void |
prependSignatureToSC() |
protected void |
putCustomTokenAfterSignature() |
protected void |
removeSignatureIfSignedSAML() |
protected void |
storeSecurityToken(org.apache.wss4j.policy.model.AbstractToken policyToken,
SecurityToken tok) |
assertAlgorithmSuite, assertPolicy, assertPolicy, assertToken, assertTokenWrapper, assertTrustProperties, assertWSSProperties, getAllAssertionsByLocalname, getMessage, getSecurityToken, getWss10, isRequestor, isTokenRequired, unassertPolicy, unassertPolicy
protected boolean timestampAdded
protected boolean signatureConfirmationAdded
protected Set<org.apache.xml.security.stax.ext.SecurePart> encryptedTokensList
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> endEncSuppTokMap
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> endSuppTokMap
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> sgndEndEncSuppTokMap
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> sgndEndSuppTokMap
protected final org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext
public AbstractStaxBindingHandler(org.apache.wss4j.stax.ext.WSSSecurityProperties properties, SoapMessage msg, org.apache.wss4j.policy.model.AbstractBinding binding, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext)
protected org.apache.xml.security.stax.ext.SecurePart addUsernameToken(org.apache.wss4j.policy.model.UsernameToken usernameToken)
protected org.apache.xml.security.stax.ext.SecurePart addKerberosToken(org.apache.wss4j.policy.model.KerberosToken token, boolean signed, boolean endorsing, boolean encrypting) throws org.apache.wss4j.common.ext.WSSecurityException, TokenStoreException
org.apache.wss4j.common.ext.WSSecurityException
TokenStoreException
protected org.apache.xml.security.stax.ext.SecurePart addSamlToken(org.apache.wss4j.policy.model.SamlToken token, boolean signed, boolean endorsing) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
protected org.apache.xml.security.stax.ext.SecurePart addIssuedToken(org.apache.wss4j.policy.model.AbstractToken token, SecurityToken secToken, boolean signed, boolean endorsing)
protected void storeSecurityToken(org.apache.wss4j.policy.model.AbstractToken policyToken, SecurityToken tok)
protected void configureTimestamp(AssertionInfoMap aim)
protected void configureLayout(AssertionInfoMap aim)
protected org.apache.wss4j.stax.ext.WSSSecurityProperties getProperties()
protected void configureSignature(org.apache.wss4j.policy.model.AbstractToken token, boolean attached) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
protected org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier getKeyIdentifierType(org.apache.wss4j.policy.model.AbstractToken token)
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(Collection<AssertionInfo> tokenAssertions, boolean signed, boolean endorse) throws Exception
Exception
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(org.apache.wss4j.policy.model.SupportingTokens suppTokens, boolean signed, boolean endorse) throws Exception
Exception
protected Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> handleSupportingTokens(org.apache.wss4j.policy.model.SupportingTokens suppTokens, boolean signed, boolean endorse, Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> ret) throws Exception
Exception
protected void handleUsernameTokenSupportingToken(org.apache.wss4j.policy.model.UsernameToken token, boolean endorse, boolean encryptedToken, Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> ret) throws Exception
Exception
protected void addSignatureParts(Map<org.apache.wss4j.policy.model.AbstractToken,org.apache.xml.security.stax.ext.SecurePart> tokenMap)
protected void addSignatureConfirmation(List<org.apache.xml.security.stax.ext.SecurePart> sigParts)
protected List<org.apache.xml.security.stax.ext.SecurePart> getSignedParts() throws SOAPException
SOAPException
protected List<org.apache.xml.security.stax.ext.SecurePart> getEncryptedParts() throws SOAPException
SOAPException
protected org.apache.xml.security.stax.securityToken.SecurityToken findInboundSecurityToken(org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event event) throws org.apache.xml.security.exceptions.XMLSecurityException
org.apache.xml.security.exceptions.XMLSecurityException
protected void removeSignatureIfSignedSAML()
protected void prependSignatureToSC()
protected void enforceEncryptBeforeSigningWithSignedSAML()
protected void putCustomTokenAfterSignature()
Apache CXF