Package 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
- Author:
- Vbkumar.Jayanti@Sun.COM, shyam.rao@sun.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected AlgorithmSuiteprotected com.sun.xml.ws.policy.Policyprotected booleanprotected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperationConstants for RM Security Processingprotected static final booleanprotected booleanprotected booleanprotected static final List<com.sun.xml.ws.policy.PolicyAssertion>protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intprotected static javax.xml.bind.JAXBContextprotected static final Loggerprotected javax.xml.bind.Marshallerprotected com.sun.xml.ws.rx.mc.api.McProtocolVersionprotected booleanprotected List<PolicyAlternativeHolder>protected com.sun.xml.ws.rx.rm.api.RmProtocolVersionprotected SecurityEnvironmentprotected booleanprotected X509Certificateprotected javax.xml.soap.SOAPFactoryprotected com.sun.xml.ws.api.SOAPVersionprotected com.sun.xml.ws.security.policy.SecurityPolicyVersionprotected longprotected booleanprotected TubeConfigurationprotected javax.xml.bind.Unmarshallerprotected static final Stringprotected static final Stringprotected com.sun.xml.ws.policy.Policyprotected com.sun.xml.ws.policy.PolicyMapprotected com.sun.xml.ws.security.secconv.WSSCVersionprotected com.sun.xml.ws.security.trust.WSTrustVersionFields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
next -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSecurityTubeBase(SecurityTubeBase that, com.sun.xml.ws.api.pipe.TubeCloner cloner) SecurityTubeBase(TubeConfiguration config, com.sun.xml.ws.api.pipe.Tube nextTube) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddIncomingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, SecurityPolicyHolder sph, com.sun.xml.ws.api.model.wsdl.WSDLFault fault) protected abstract SecurityPolicyHolderaddIncomingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation, com.sun.xml.ws.policy.Policy policy, PolicyAlternativeHolder ph) protected abstract voidaddIncomingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) protected abstract voidaddOutgoingFaultPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, SecurityPolicyHolder sph, com.sun.xml.ws.api.model.wsdl.WSDLFault fault) protected abstract SecurityPolicyHolderaddOutgoingMP(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation operation, com.sun.xml.ws.policy.Policy policy, PolicyAlternativeHolder ph) protected abstract voidaddOutgoingProtocolPolicy(com.sun.xml.ws.policy.Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) protected booleanprotected booleanprotected booleanprotected voidbuildProtocolPolicy(com.sun.xml.ws.policy.Policy endpointPolicy, PolicyAlternativeHolder ph) protected voidcacheMessage(com.sun.xml.ws.api.message.Packet packet) protected final voidcacheOperation(com.sun.xml.ws.api.message.Message msg) protected voidcollectPolicies(List<PolicyAlternativeHolder> alternatives) Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ).protected SecurityPolicyHolderconstructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy, boolean isServer, boolean isIncoming) protected SecurityPolicyHolderconstructPolicyHolder(com.sun.xml.ws.policy.Policy effectivePolicy, boolean isServer, boolean isIncoming, boolean ignoreST) protected RuntimeExceptiongenerateInternalError(com.sun.xml.ws.policy.PolicyException ex) protected StringgetAction(com.sun.xml.ws.api.message.Packet packet) protected abstract StringgetAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation, boolean isIncomming) protected AlgorithmSuitegetAlgoSuite(AlgorithmSuite suite) protected AlgorithmSuitegetBindingAlgorithmSuite(com.sun.xml.ws.api.message.Packet packet) protected com.sun.xml.ws.policy.PolicygetEffectiveBootstrapPolicy(com.sun.xml.ws.policy.NestedPolicy bp) protected List<com.sun.xml.ws.policy.PolicyAssertion>getInBoundSCP(com.sun.xml.ws.api.message.Message message) protected MessagePolicygetInboundXWSBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) protected List<com.sun.xml.ws.policy.PolicyAssertion>getIssuedTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) protected List<com.sun.xml.ws.policy.PolicyAssertion>getKerberosTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperationgetOperation(com.sun.xml.ws.api.message.Message message) protected com.sun.xml.ws.policy.PolicyMapKeygetOperationKey(com.sun.xml.ws.api.message.Message message) protected List<com.sun.xml.ws.policy.PolicyAssertion>getOutBoundKTP(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) protected List<com.sun.xml.ws.policy.PolicyAssertion>getOutBoundSCP(com.sun.xml.ws.api.message.Message message) protected MessagePolicygetOutgoingXWSBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) protected MessagePolicygetOutgoingXWSSecurityPolicy(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) protected List<com.sun.xml.ws.policy.PolicyAssertion>getSecureConversationPolicies(com.sun.xml.ws.api.message.Message message, String scope) protected javax.xml.soap.SOAPFaultprotected javax.xml.ws.soap.SOAPFaultExceptionprotected javax.xml.ws.soap.SOAPFaultExceptiongetSOAPFaultException(com.sun.xml.wss.XWSSecurityException xwse) protected ArrayList<com.sun.xml.ws.policy.PolicyAssertion>getTokens(com.sun.xml.ws.policy.Policy policy) protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperationgetWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet, boolean isIncomming) protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperationgetWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet, boolean isIncomming, boolean isFault) protected WSSAssertiongetWssAssertion(WSSAssertion asser) protected booleanprotected ProcessingContextinitializeInboundProcessingContext(com.sun.xml.ws.api.message.Packet packet) protected ProcessingContextinitializeOutgoingProcessingContext(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) protected booleanprotected booleanisMakeConnectionMessage(com.sun.xml.ws.api.message.Packet packet) protected booleanisRMMessage(com.sun.xml.ws.api.message.Packet packet) protected booleanisSCCancel(com.sun.xml.ws.api.message.Packet packet) protected booleanisSCMessage(com.sun.xml.ws.api.message.Packet packet) protected booleanisSCRenew(com.sun.xml.ws.api.message.Packet packet) protected booleanisTrustMessage(com.sun.xml.ws.api.message.Packet packet) protected Classprotected StringpopulateConfigProperties(Set<com.sun.xml.ws.policy.PolicyAssertion> configAssertions, Properties props) protected final voidprotected PolicyAlternativeHolderresolveAlternative(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) protected com.sun.xml.ws.api.message.MessagesecureOutboundMessage(com.sun.xml.ws.api.message.Message message, ProcessingContext ctx) protected javax.xml.soap.SOAPMessagesecureOutboundMessage(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) protected com.sun.xml.ws.policy.sourcemodel.PolicySourceModelunmarshalPolicy(String resource) protected com.sun.xml.ws.api.message.MessageverifyInboundMessage(com.sun.xml.ws.api.message.Message message, ProcessingContext ctx) protected javax.xml.soap.SOAPMessageverifyInboundMessage(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
preDestroy, processException, processRequest, processResponseMethods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
copy, copy, doInvoke, doInvokeAndForget, doReturnWith, doSuspend, doSuspend, doSuspend, doSuspend, doThrow, doThrow, process
-
Field Details
-
log
-
optimized
protected boolean optimized -
transportOptimization
protected boolean transportOptimization -
issuedTokenContextMap
-
tubeConfig
-
jaxbContext
protected static javax.xml.bind.JAXBContext jaxbContext -
wsscVer
protected com.sun.xml.ws.security.secconv.WSSCVersion wsscVer -
wsTrustVer
protected com.sun.xml.ws.security.trust.WSTrustVersion wsTrustVer -
rmVer
protected com.sun.xml.ws.rx.rm.api.RmProtocolVersion rmVer -
mcVer
protected com.sun.xml.ws.rx.mc.api.McProtocolVersion mcVer -
disablePayloadBuffer
protected boolean disablePayloadBuffer -
bindingLevelAlgSuite
-
disableIncPrefix
protected boolean disableIncPrefix -
encHeaderContent
protected boolean encHeaderContent -
bsp10
protected boolean bsp10 -
allowMissingTimestamp
protected boolean allowMissingTimestamp -
securityMUValue
protected boolean securityMUValue -
encRMLifecycleMsg
protected boolean encRMLifecycleMsg -
securityPolicyNamespaces
-
EMPTY_LIST
-
secEnv
-
debug
protected static final boolean debug- See Also:
-
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 -
bpMSP
protected com.sun.xml.ws.policy.Policy bpMSP -
timestampTimeOut
protected long timestampTimeOut -
iterationsForPDK
protected int iterationsForPDK -
isEPREnabled
protected boolean isEPREnabled -
isCertValidityVerified
protected boolean isCertValidityVerified -
policyAlternatives
-
cachedOperation
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation cachedOperationConstants 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 com.sun.xml.ws.security.policy.SecurityPolicyVersion spVersion -
WSDLPORT
- See Also:
-
WSENDPOINT
- See Also:
-
serverCert
-
isCertValid
protected boolean isCertValid
-
-
Constructor Details
-
SecurityTubeBase
-
SecurityTubeBase
-
-
Method Details
-
secureOutboundMessage
protected javax.xml.soap.SOAPMessage secureOutboundMessage(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) -
generateInternalError
-
secureOutboundMessage
protected com.sun.xml.ws.api.message.Message secureOutboundMessage(com.sun.xml.ws.api.message.Message message, ProcessingContext ctx) -
verifyInboundMessage
protected javax.xml.soap.SOAPMessage verifyInboundMessage(javax.xml.soap.SOAPMessage message, ProcessingContext ctx) throws WssSoapFaultException, com.sun.xml.wss.XWSSecurityException - Throws:
WssSoapFaultExceptioncom.sun.xml.wss.XWSSecurityException
-
verifyInboundMessage
protected com.sun.xml.ws.api.message.Message verifyInboundMessage(com.sun.xml.ws.api.message.Message message, ProcessingContext ctx) throws com.sun.xml.wss.XWSSecurityException - Throws:
com.sun.xml.wss.XWSSecurityException
-
getIssuedTokenPoliciesFromBootstrapPolicy
protected List<com.sun.xml.ws.policy.PolicyAssertion> getIssuedTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) -
getKerberosTokenPoliciesFromBootstrapPolicy
protected List<com.sun.xml.ws.policy.PolicyAssertion> getKerberosTokenPoliciesFromBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) -
getOutgoingXWSSecurityPolicy
protected 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 MessagePolicy getInboundXWSBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) -
getOutgoingXWSBootstrapPolicy
protected MessagePolicy getOutgoingXWSBootstrapPolicy(com.sun.xml.ws.security.policy.Token scAssertion) -
initializeInboundProcessingContext
protected 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 ProcessingContext initializeOutgoingProcessingContext(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) -
getSOAPFault
-
getSOAPFaultException
-
getSOAPFaultException
protected javax.xml.ws.soap.SOAPFaultException getSOAPFaultException(com.sun.xml.wss.XWSSecurityException xwse) -
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 List<com.sun.xml.ws.policy.PolicyAssertion> getInBoundSCP(com.sun.xml.ws.api.message.Message message) -
getOutBoundSCP
protected List<com.sun.xml.ws.policy.PolicyAssertion> getOutBoundSCP(com.sun.xml.ws.api.message.Message message) -
getOutBoundKTP
protected List<com.sun.xml.ws.policy.PolicyAssertion> getOutBoundKTP(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage) -
getSecureConversationPolicies
-
getTokens
protected 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, PolicyAlternativeHolder ph) 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, PolicyAlternativeHolder ph) throws com.sun.xml.ws.policy.PolicyException - Throws:
com.sun.xml.ws.policy.PolicyException
-
getBindingAlgorithmSuite
-
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(String resource) throws com.sun.xml.ws.policy.PolicyException, IOException - Throws:
com.sun.xml.ws.policy.PolicyExceptionIOException
-
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) -
isMakeConnectionMessage
protected boolean isMakeConnectionMessage(com.sun.xml.ws.api.message.Packet packet) -
getAction
-
getWSDLOpFromAction
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet, boolean isIncomming) -
getWSDLOpFromAction
protected com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation getWSDLOpFromAction(com.sun.xml.ws.api.message.Packet packet, boolean isIncomming, boolean isFault) -
buildProtocolPolicy
protected void buildProtocolPolicy(com.sun.xml.ws.policy.Policy endpointPolicy, PolicyAlternativeHolder ph) 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 String populateConfigProperties(Set<com.sun.xml.ws.policy.PolicyAssertion> configAssertions, Properties props) -
loadClass
- Throws:
Exception
-
getAlgoSuite
-
getWssAssertion
-
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, String protocol, PolicyAlternativeHolder ph) 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, String protocol, PolicyAlternativeHolder ph) throws com.sun.xml.ws.policy.PolicyException - Throws:
com.sun.xml.ws.policy.PolicyException
-
getAction
protected abstract String getAction(com.sun.xml.ws.api.model.wsdl.WSDLOperation operation, boolean isIncomming) -
resolveAlternative
protected PolicyAlternativeHolder resolveAlternative(com.sun.xml.ws.api.message.Packet packet, boolean isSCMessage)
-