com.sun.xml.wss.jaxws.impl
Class SecurityTubeBase
java.lang.Object
com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
com.sun.xml.wss.jaxws.impl.SecurityTubeBase
- All Implemented Interfaces:
- com.sun.xml.ws.api.pipe.Pipe, com.sun.xml.ws.api.pipe.Tube
- Direct Known Subclasses:
- SecurityClientTube, SecurityServerTube
public abstract class SecurityTubeBase
- extends com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
Fields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl |
next |
Method Summary |
protected abstract void |
addIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
|
protected abstract SecurityPolicyHolder |
addIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy)
|
protected abstract void |
addIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
java.lang.String protocol)
|
protected abstract void |
addOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
|
protected abstract SecurityPolicyHolder |
addOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy)
|
protected abstract void |
addOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
java.lang.String protocol)
|
protected boolean |
bindingHasIssuedTokenPolicy()
|
protected boolean |
bindingHasRMPolicy()
|
protected boolean |
bindingHasSecureConversationPolicy()
|
protected void |
buildProtocolPolicy(com.sun.xml.ws.policy.Policy endpointPolicy)
|
protected void |
cacheMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected void |
cacheOperation(com.sun.xml.ws.api.message.Message msg)
|
protected void |
collectPolicies()
Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ). |
protected SecurityPolicyHolder |
constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming)
|
protected SecurityPolicyHolder |
constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming,
boolean ignoreST)
|
protected java.lang.RuntimeException |
generateInternalError(com.sun.xml.ws.policy.PolicyException ex)
|
protected java.lang.String |
getAction(com.sun.xml.ws.api.message.Packet packet)
|
protected abstract java.lang.String |
getAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation,
boolean isIncomming)
|
protected com.sun.xml.wss.impl.AlgorithmSuite |
getAlgoSuite(AlgorithmSuite suite)
|
protected AlgorithmSuite |
getBindingAlgorithmSuite(com.sun.xml.ws.api.message.Packet packet)
|
protected com.sun.xml.ws.policy.Policy |
getEffectiveBootstrapPolicy(com.sun.xml.ws.policy.NestedPolicy bp)
|
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> |
getInBoundSCP(com.sun.xml.ws.api.message.Message message)
|
protected com.sun.xml.wss.impl.policy.mls.MessagePolicy |
getInboundXWSBootstrapPolicy(Token scAssertion)
|
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> |
getIssuedTokenPoliciesFromBootstrapPolicy(Token scAssertion)
|
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> |
getKerberosTokenPoliciesFromBootstrapPolicy(Token scAssertion)
|
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation |
getOperation(com.sun.xml.ws.api.message.Message message)
|
protected com.sun.xml.ws.policy.PolicyMapKey |
getOperationKey(com.sun.xml.ws.api.message.Message message)
|
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> |
getOutBoundKTP(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
|
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> |
getOutBoundSCP(com.sun.xml.ws.api.message.Message message)
|
protected com.sun.xml.wss.impl.policy.mls.MessagePolicy |
getOutgoingXWSBootstrapPolicy(Token scAssertion)
|
protected com.sun.xml.wss.impl.policy.mls.MessagePolicy |
getOutgoingXWSSecurityPolicy(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
|
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> |
getSecureConversationPolicies(com.sun.xml.ws.api.message.Message message,
java.lang.String scope)
|
protected javax.xml.soap.SOAPFault |
getSOAPFault(com.sun.xml.wss.impl.WssSoapFaultException sfe)
|
protected javax.xml.ws.soap.SOAPFaultException |
getSOAPFaultException(com.sun.xml.wss.impl.WssSoapFaultException sfe)
|
protected javax.xml.ws.soap.SOAPFaultException |
getSOAPFaultException(com.sun.xml.wss.XWSSecurityException xwse)
|
protected java.util.ArrayList<com.sun.xml.ws.policy.PolicyAssertion> |
getTokens(com.sun.xml.ws.policy.Policy policy)
|
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation |
getWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet,
boolean isIncomming)
|
protected com.sun.xml.wss.impl.WSSAssertion |
getWssAssertion(WSSAssertion asser)
|
protected boolean |
hasKerberosTokenPolicy()
|
protected com.sun.xml.wss.ProcessingContext |
initializeInboundProcessingContext(com.sun.xml.ws.api.message.Packet packet)
|
protected com.sun.xml.wss.ProcessingContext |
initializeOutgoingProcessingContext(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
|
protected boolean |
isAddressingEnabled()
|
protected boolean |
isRMMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isSCCancel(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isSCMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isSCRenew(com.sun.xml.ws.api.message.Packet packet)
|
protected boolean |
isTrustMessage(com.sun.xml.ws.api.message.Packet packet)
|
protected java.lang.Class |
loadClass(java.lang.String classname)
|
protected java.lang.String |
populateConfigProperties(java.util.Set<com.sun.xml.ws.policy.PolicyAssertion> configAssertions,
java.util.Properties props)
|
protected void |
resetCachedOperation()
|
protected com.sun.xml.ws.api.message.Message |
secureOutboundMessage(com.sun.xml.ws.api.message.Message message,
com.sun.xml.wss.ProcessingContext ctx)
|
protected javax.xml.soap.SOAPMessage |
secureOutboundMessage(javax.xml.soap.SOAPMessage message,
com.sun.xml.wss.ProcessingContext ctx)
|
protected com.sun.xml.ws.policy.sourcemodel.PolicySourceModel |
unmarshalPolicy(java.lang.String resource)
|
protected com.sun.xml.ws.api.message.Message |
verifyInboundMessage(com.sun.xml.ws.api.message.Message message,
com.sun.xml.wss.ProcessingContext ctx)
|
protected javax.xml.soap.SOAPMessage |
verifyInboundMessage(javax.xml.soap.SOAPMessage message,
com.sun.xml.wss.ProcessingContext ctx)
|
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl |
preDestroy, processException, processRequest, processResponse |
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl |
copy, copy, doInvoke, doInvokeAndForget, doReturnWith, doSuspend, doSuspend, doThrow, process |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final java.util.logging.Logger log
optimized
protected boolean optimized
transportOptimization
protected boolean transportOptimization
issuedTokenContextMap
protected java.util.Hashtable<java.lang.String,com.sun.xml.ws.security.IssuedTokenContext> issuedTokenContextMap
tubeConfig
protected TubeConfiguration tubeConfig
jaxbContext
protected static javax.xml.bind.JAXBContext jaxbContext
wsscVer
protected WSSCVersion wsscVer
wsTrustVer
protected WSTrustVersion wsTrustVer
rmVer
protected RmVersion rmVer
disablePayloadBuffer
protected boolean disablePayloadBuffer
bindingLevelAlgSuite
protected AlgorithmSuite bindingLevelAlgSuite
disableIncPrefix
protected boolean disableIncPrefix
encHeaderContent
protected boolean encHeaderContent
bsp10
protected boolean bsp10
allowMissingTimestamp
protected boolean allowMissingTimestamp
securityMUValue
protected boolean securityMUValue
securityPolicyNamespaces
protected static final java.util.ArrayList<java.lang.String> securityPolicyNamespaces
EMPTY_LIST
protected static final java.util.List<com.sun.xml.ws.policy.PolicyAssertion> EMPTY_LIST
secEnv
protected com.sun.xml.wss.SecurityEnvironment secEnv
debug
protected static final boolean debug
- See Also:
- Constant Field Values
isSOAP12
protected boolean isSOAP12
soapVersion
protected com.sun.xml.ws.api.SOAPVersion soapVersion
soapFactory
protected javax.xml.soap.SOAPFactory soapFactory
wsPolicyMap
protected com.sun.xml.ws.policy.PolicyMap wsPolicyMap
outMessagePolicyMap
protected java.util.HashMap<com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation,SecurityPolicyHolder> outMessagePolicyMap
inMessagePolicyMap
protected java.util.HashMap<com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation,SecurityPolicyHolder> inMessagePolicyMap
outProtocolPM
protected java.util.HashMap<java.lang.String,SecurityPolicyHolder> outProtocolPM
inProtocolPM
protected java.util.HashMap<java.lang.String,SecurityPolicyHolder> inProtocolPM
bpMSP
protected com.sun.xml.ws.policy.Policy bpMSP
timestampTimeOut
protected long timestampTimeOut
cachedOperation
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation cachedOperation
- Constants for RM Security Processing
wsitConfig
protected com.sun.xml.ws.policy.Policy wsitConfig
marshaller
protected javax.xml.bind.Marshaller marshaller
unmarshaller
protected javax.xml.bind.Unmarshaller unmarshaller
spVersion
protected SecurityPolicyVersion spVersion
WSDLPORT
protected static final java.lang.String WSDLPORT
- See Also:
- Constant Field Values
SecurityTubeBase
public SecurityTubeBase(TubeConfiguration config,
com.sun.xml.ws.api.pipe.Tube nextTube)
SecurityTubeBase
protected SecurityTubeBase(SecurityTubeBase that,
com.sun.xml.ws.api.pipe.TubeCloner cloner)
secureOutboundMessage
protected javax.xml.soap.SOAPMessage secureOutboundMessage(javax.xml.soap.SOAPMessage message,
com.sun.xml.wss.ProcessingContext ctx)
generateInternalError
protected java.lang.RuntimeException generateInternalError(com.sun.xml.ws.policy.PolicyException ex)
secureOutboundMessage
protected com.sun.xml.ws.api.message.Message secureOutboundMessage(com.sun.xml.ws.api.message.Message message,
com.sun.xml.wss.ProcessingContext ctx)
verifyInboundMessage
protected javax.xml.soap.SOAPMessage verifyInboundMessage(javax.xml.soap.SOAPMessage message,
com.sun.xml.wss.ProcessingContext ctx)
throws com.sun.xml.wss.impl.WssSoapFaultException,
com.sun.xml.wss.XWSSecurityException
- Throws:
com.sun.xml.wss.impl.WssSoapFaultException
com.sun.xml.wss.XWSSecurityException
verifyInboundMessage
protected com.sun.xml.ws.api.message.Message verifyInboundMessage(com.sun.xml.ws.api.message.Message message,
com.sun.xml.wss.ProcessingContext ctx)
throws com.sun.xml.wss.XWSSecurityException
- Throws:
com.sun.xml.wss.XWSSecurityException
getIssuedTokenPoliciesFromBootstrapPolicy
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getIssuedTokenPoliciesFromBootstrapPolicy(Token scAssertion)
getKerberosTokenPoliciesFromBootstrapPolicy
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getKerberosTokenPoliciesFromBootstrapPolicy(Token scAssertion)
getOutgoingXWSSecurityPolicy
protected com.sun.xml.wss.impl.policy.mls.MessagePolicy getOutgoingXWSSecurityPolicy(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
getOperation
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getOperation(com.sun.xml.ws.api.message.Message message)
getInboundXWSBootstrapPolicy
protected com.sun.xml.wss.impl.policy.mls.MessagePolicy getInboundXWSBootstrapPolicy(Token scAssertion)
getOutgoingXWSBootstrapPolicy
protected com.sun.xml.wss.impl.policy.mls.MessagePolicy getOutgoingXWSBootstrapPolicy(Token scAssertion)
initializeInboundProcessingContext
protected com.sun.xml.wss.ProcessingContext initializeInboundProcessingContext(com.sun.xml.ws.api.message.Packet packet)
bindingHasIssuedTokenPolicy
protected boolean bindingHasIssuedTokenPolicy()
bindingHasSecureConversationPolicy
protected boolean bindingHasSecureConversationPolicy()
bindingHasRMPolicy
protected boolean bindingHasRMPolicy()
hasKerberosTokenPolicy
protected boolean hasKerberosTokenPolicy()
initializeOutgoingProcessingContext
protected com.sun.xml.wss.ProcessingContext initializeOutgoingProcessingContext(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
getSOAPFault
protected javax.xml.soap.SOAPFault getSOAPFault(com.sun.xml.wss.impl.WssSoapFaultException sfe)
getSOAPFaultException
protected javax.xml.ws.soap.SOAPFaultException getSOAPFaultException(com.sun.xml.wss.impl.WssSoapFaultException sfe)
getSOAPFaultException
protected javax.xml.ws.soap.SOAPFaultException getSOAPFaultException(com.sun.xml.wss.XWSSecurityException xwse)
collectPolicies
protected void collectPolicies()
- Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ).
MessagePolicySubject : policy can be attached to
1) wsdl:binding/wsdl:operation/wsdl:input, ./wsdl:output, or ./wsdl:fault
OperationPolicySubject : policy can be attached to
1)wsdl:binding/wsdl:operation
EndpointPolicySubject : policy can be attached to
1)wsdl:port
2)wsdl:Binding
getInBoundSCP
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getInBoundSCP(com.sun.xml.ws.api.message.Message message)
getOutBoundSCP
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getOutBoundSCP(com.sun.xml.ws.api.message.Message message)
getOutBoundKTP
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getOutBoundKTP(com.sun.xml.ws.api.message.Packet packet,
boolean isSCMessage)
getSecureConversationPolicies
protected java.util.List<com.sun.xml.ws.policy.PolicyAssertion> getSecureConversationPolicies(com.sun.xml.ws.api.message.Message message,
java.lang.String scope)
getTokens
protected java.util.ArrayList<com.sun.xml.ws.policy.PolicyAssertion> getTokens(com.sun.xml.ws.policy.Policy policy)
getOperationKey
protected com.sun.xml.ws.policy.PolicyMapKey getOperationKey(com.sun.xml.ws.api.message.Message message)
addOutgoingMP
protected abstract SecurityPolicyHolder addOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addIncomingMP
protected abstract SecurityPolicyHolder addIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation,
com.sun.xml.ws.policy.Policy policy)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
getBindingAlgorithmSuite
protected AlgorithmSuite getBindingAlgorithmSuite(com.sun.xml.ws.api.message.Packet packet)
cacheMessage
protected void cacheMessage(com.sun.xml.ws.api.message.Packet packet)
getEffectiveBootstrapPolicy
protected com.sun.xml.ws.policy.Policy getEffectiveBootstrapPolicy(com.sun.xml.ws.policy.NestedPolicy bp)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
unmarshalPolicy
protected com.sun.xml.ws.policy.sourcemodel.PolicySourceModel unmarshalPolicy(java.lang.String resource)
throws com.sun.xml.ws.policy.PolicyException,
java.io.IOException
- Throws:
com.sun.xml.ws.policy.PolicyException
java.io.IOException
cacheOperation
protected final void cacheOperation(com.sun.xml.ws.api.message.Message msg)
resetCachedOperation
protected final void resetCachedOperation()
isSCMessage
protected boolean isSCMessage(com.sun.xml.ws.api.message.Packet packet)
isSCCancel
protected boolean isSCCancel(com.sun.xml.ws.api.message.Packet packet)
isSCRenew
protected boolean isSCRenew(com.sun.xml.ws.api.message.Packet packet)
isAddressingEnabled
protected boolean isAddressingEnabled()
isTrustMessage
protected boolean isTrustMessage(com.sun.xml.ws.api.message.Packet packet)
isRMMessage
protected boolean isRMMessage(com.sun.xml.ws.api.message.Packet packet)
getAction
protected java.lang.String getAction(com.sun.xml.ws.api.message.Packet packet)
getWSDLOpFromAction
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet,
boolean isIncomming)
buildProtocolPolicy
protected void buildProtocolPolicy(com.sun.xml.ws.policy.Policy endpointPolicy)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
constructPolicyHolder
protected SecurityPolicyHolder constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
constructPolicyHolder
protected SecurityPolicyHolder constructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy,
boolean isServer,
boolean isIncoming,
boolean ignoreST)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
populateConfigProperties
protected java.lang.String populateConfigProperties(java.util.Set<com.sun.xml.ws.policy.PolicyAssertion> configAssertions,
java.util.Properties props)
loadClass
protected java.lang.Class loadClass(java.lang.String classname)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAlgoSuite
protected com.sun.xml.wss.impl.AlgorithmSuite getAlgoSuite(AlgorithmSuite suite)
getWssAssertion
protected com.sun.xml.wss.impl.WSSAssertion getWssAssertion(WSSAssertion asser)
addIncomingFaultPolicy
protected abstract void addIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addOutgoingFaultPolicy
protected abstract void addOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
SecurityPolicyHolder sph,
com.sun.xml.ws.api.model.wsdl.WSDLFault fault)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addIncomingProtocolPolicy
protected abstract void addIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
java.lang.String protocol)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
addOutgoingProtocolPolicy
protected abstract void addOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy,
java.lang.String protocol)
throws com.sun.xml.ws.policy.PolicyException
- Throws:
com.sun.xml.ws.policy.PolicyException
getAction
protected abstract java.lang.String getAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation,
boolean isIncomming)