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
-
- Direct Known Subclasses:
SecurityClientTube,SecurityServerTube
public abstract class SecurityTubeBase extends AbstractFilterTubeImpl
- Author:
- Vbkumar.Jayanti@Sun.COM, shyam.rao@sun.com
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowMissingTimestampprotected AlgorithmSuitebindingLevelAlgSuiteprotected PolicybpMSPprotected booleanbsp10protected WSDLBoundOperationcachedOperationConstants for RM Security Processingprotected static booleandebugprotected booleandisableIncPrefixprotected booleandisablePayloadBufferprotected static List<PolicyAssertion>EMPTY_LISTprotected booleanencHeaderContentprotected booleanencRMLifecycleMsgprotected booleanisCertValidprotected booleanisCertValidityVerifiedprotected booleanisEPREnabledprotected booleanisSOAP12protected Hashtable<String,IssuedTokenContext>issuedTokenContextMapprotected intiterationsForPDKprotected static jakarta.xml.bind.JAXBContextjaxbContextprotected static Loggerlogprotected jakarta.xml.bind.Marshallermarshallerprotected McProtocolVersionmcVerprotected booleanoptimizedprotected List<PolicyAlternativeHolder>policyAlternativesprotected RmProtocolVersionrmVerprotected SecurityEnvironmentsecEnvprotected booleansecurityMUValueprotected static ArrayList<String>securityPolicyNamespacesprotected X509CertificateserverCertprotected jakarta.xml.soap.SOAPFactorysoapFactoryprotected SOAPVersionsoapVersionprotected SecurityPolicyVersionspVersionprotected longtimestampTimeOutprotected booleantransportOptimizationprotected TubeConfigurationtubeConfigprotected jakarta.xml.bind.Unmarshallerunmarshallerprotected static StringWSDLPORTprotected static StringWSENDPOINTprotected PolicywsitConfigprotected PolicyMapwsPolicyMapprotected WSSCVersionwsscVerprotected WSTrustVersionwsTrustVer-
Fields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
next
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSecurityTubeBase(SecurityTubeBase that, TubeCloner cloner)SecurityTubeBase(TubeConfiguration config, Tube nextTube)
-
Method Summary
-
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, doSuspend, doSuspend, doThrow, doThrow, process
-
-
-
-
Field Detail
-
log
protected static final Logger log
-
optimized
protected boolean optimized
-
transportOptimization
protected boolean transportOptimization
-
issuedTokenContextMap
protected Hashtable<String,IssuedTokenContext> issuedTokenContextMap
-
tubeConfig
protected TubeConfiguration tubeConfig
-
jaxbContext
protected static jakarta.xml.bind.JAXBContext jaxbContext
-
wsscVer
protected WSSCVersion wsscVer
-
wsTrustVer
protected WSTrustVersion wsTrustVer
-
rmVer
protected RmProtocolVersion rmVer
-
mcVer
protected McProtocolVersion mcVer
-
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
-
encRMLifecycleMsg
protected boolean encRMLifecycleMsg
-
EMPTY_LIST
protected static final List<PolicyAssertion> EMPTY_LIST
-
secEnv
protected SecurityEnvironment secEnv
-
debug
protected static final boolean debug
- See Also:
- Constant Field Values
-
isSOAP12
protected boolean isSOAP12
-
soapVersion
protected SOAPVersion soapVersion
-
soapFactory
protected jakarta.xml.soap.SOAPFactory soapFactory
-
wsPolicyMap
protected PolicyMap wsPolicyMap
-
bpMSP
protected Policy bpMSP
-
timestampTimeOut
protected long timestampTimeOut
-
iterationsForPDK
protected int iterationsForPDK
-
isEPREnabled
protected boolean isEPREnabled
-
isCertValidityVerified
protected boolean isCertValidityVerified
-
policyAlternatives
protected List<PolicyAlternativeHolder> policyAlternatives
-
cachedOperation
protected WSDLBoundOperation cachedOperation
Constants for RM Security Processing
-
wsitConfig
protected Policy wsitConfig
-
marshaller
protected jakarta.xml.bind.Marshaller marshaller
-
unmarshaller
protected jakarta.xml.bind.Unmarshaller unmarshaller
-
spVersion
protected SecurityPolicyVersion spVersion
-
WSDLPORT
protected static final String WSDLPORT
- See Also:
- Constant Field Values
-
WSENDPOINT
protected static final String WSENDPOINT
- See Also:
- Constant Field Values
-
serverCert
protected X509Certificate serverCert
-
isCertValid
protected boolean isCertValid
-
-
Constructor Detail
-
SecurityTubeBase
public SecurityTubeBase(TubeConfiguration config, Tube nextTube)
-
SecurityTubeBase
protected SecurityTubeBase(SecurityTubeBase that, TubeCloner cloner)
-
-
Method Detail
-
secureOutboundMessage
protected jakarta.xml.soap.SOAPMessage secureOutboundMessage(jakarta.xml.soap.SOAPMessage message, ProcessingContext ctx)
-
generateInternalError
protected RuntimeException generateInternalError(PolicyException ex)
-
secureOutboundMessage
protected Message secureOutboundMessage(Message message, ProcessingContext ctx)
-
verifyInboundMessage
protected jakarta.xml.soap.SOAPMessage verifyInboundMessage(jakarta.xml.soap.SOAPMessage message, ProcessingContext ctx) throws WssSoapFaultException, XWSSecurityException
-
verifyInboundMessage
protected Message verifyInboundMessage(Message message, ProcessingContext ctx) throws XWSSecurityException
- Throws:
XWSSecurityException
-
getIssuedTokenPoliciesFromBootstrapPolicy
protected List<PolicyAssertion> getIssuedTokenPoliciesFromBootstrapPolicy(Token scAssertion)
-
getKerberosTokenPoliciesFromBootstrapPolicy
protected List<PolicyAssertion> getKerberosTokenPoliciesFromBootstrapPolicy(Token scAssertion)
-
getOutgoingXWSSecurityPolicy
protected MessagePolicy getOutgoingXWSSecurityPolicy(Packet packet, boolean isSCMessage)
-
getOperation
protected WSDLBoundOperation getOperation(Message message)
-
getInboundXWSBootstrapPolicy
protected MessagePolicy getInboundXWSBootstrapPolicy(Token scAssertion)
-
getOutgoingXWSBootstrapPolicy
protected MessagePolicy getOutgoingXWSBootstrapPolicy(Token scAssertion)
-
initializeInboundProcessingContext
protected ProcessingContext initializeInboundProcessingContext(Packet packet)
-
bindingHasIssuedTokenPolicy
protected boolean bindingHasIssuedTokenPolicy()
-
bindingHasSecureConversationPolicy
protected boolean bindingHasSecureConversationPolicy()
-
bindingHasRMPolicy
protected boolean bindingHasRMPolicy()
-
hasKerberosTokenPolicy
protected boolean hasKerberosTokenPolicy()
-
initializeOutgoingProcessingContext
protected ProcessingContext initializeOutgoingProcessingContext(Packet packet, boolean isSCMessage)
-
getSOAPFault
protected jakarta.xml.soap.SOAPFault getSOAPFault(WssSoapFaultException sfe)
-
getSOAPFaultException
protected jakarta.xml.ws.soap.SOAPFaultException getSOAPFaultException(WssSoapFaultException sfe)
-
getSOAPFaultException
protected jakarta.xml.ws.soap.SOAPFaultException getSOAPFaultException(XWSSecurityException xwse)
-
collectPolicies
protected void collectPolicies(List<PolicyAlternativeHolder> alternatives)
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<PolicyAssertion> getInBoundSCP(Message message)
-
getOutBoundSCP
protected List<PolicyAssertion> getOutBoundSCP(Message message)
-
getOutBoundKTP
protected List<PolicyAssertion> getOutBoundKTP(Packet packet, boolean isSCMessage)
-
getSecureConversationPolicies
protected List<PolicyAssertion> getSecureConversationPolicies(Message message, String scope)
-
getTokens
protected ArrayList<PolicyAssertion> getTokens(Policy policy)
-
getOperationKey
protected PolicyMapKey getOperationKey(Message message)
-
addOutgoingMP
protected abstract SecurityPolicyHolder addOutgoingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) throws PolicyException
- Throws:
PolicyException
-
addIncomingMP
protected abstract SecurityPolicyHolder addIncomingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) throws PolicyException
- Throws:
PolicyException
-
getBindingAlgorithmSuite
protected AlgorithmSuite getBindingAlgorithmSuite(Packet packet)
-
cacheMessage
protected void cacheMessage(Packet packet)
-
getEffectiveBootstrapPolicy
protected Policy getEffectiveBootstrapPolicy(NestedPolicy bp) throws PolicyException
- Throws:
PolicyException
-
unmarshalPolicy
protected PolicySourceModel unmarshalPolicy(String resource) throws PolicyException, IOException
- Throws:
PolicyExceptionIOException
-
cacheOperation
protected final void cacheOperation(Message msg)
-
resetCachedOperation
protected final void resetCachedOperation()
-
isSCMessage
protected boolean isSCMessage(Packet packet)
-
isSCCancel
protected boolean isSCCancel(Packet packet)
-
isSCRenew
protected boolean isSCRenew(Packet packet)
-
isAddressingEnabled
protected boolean isAddressingEnabled()
-
isTrustMessage
protected boolean isTrustMessage(Packet packet)
-
isRMMessage
protected boolean isRMMessage(Packet packet)
-
isMakeConnectionMessage
protected boolean isMakeConnectionMessage(Packet packet)
-
getWSDLOpFromAction
protected WSDLBoundOperation getWSDLOpFromAction(Packet packet, boolean isIncomming)
-
getWSDLOpFromAction
protected WSDLBoundOperation getWSDLOpFromAction(Packet packet, boolean isIncomming, boolean isFault)
-
buildProtocolPolicy
protected void buildProtocolPolicy(Policy endpointPolicy, PolicyAlternativeHolder ph) throws PolicyException
- Throws:
PolicyException
-
constructPolicyHolder
protected SecurityPolicyHolder constructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming) throws PolicyException
- Throws:
PolicyException
-
constructPolicyHolder
protected SecurityPolicyHolder constructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming, boolean ignoreST) throws PolicyException
- Throws:
PolicyException
-
populateConfigProperties
protected String populateConfigProperties(Set<PolicyAssertion> configAssertions, Properties props)
-
getAlgoSuite
protected AlgorithmSuite getAlgoSuite(AlgorithmSuite suite)
-
getWssAssertion
protected WSSAssertion getWssAssertion(WSSAssertion asser)
-
addIncomingFaultPolicy
protected abstract void addIncomingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) throws PolicyException
- Throws:
PolicyException
-
addOutgoingFaultPolicy
protected abstract void addOutgoingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) throws PolicyException
- Throws:
PolicyException
-
addIncomingProtocolPolicy
protected abstract void addIncomingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) throws PolicyException
- Throws:
PolicyException
-
addOutgoingProtocolPolicy
protected abstract void addOutgoingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) throws PolicyException
- Throws:
PolicyException
-
getAction
protected abstract String getAction(WSDLOperation operation, boolean isIncomming)
-
resolveAlternative
protected PolicyAlternativeHolder resolveAlternative(Packet packet, boolean isSCMessage)
-
-