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
- Author:
- Vbkumar.Jayanti@Sun.COM, shyam.rao@sun.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected AlgorithmSuiteprotected Policyprotected booleanprotected WSDLBoundOperationConstants for RM Security Processingprotected static final booleanprotected booleanprotected booleanprotected static final List<PolicyAssertion>protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Hashtable<String,IssuedTokenContext> protected intprotected static jakarta.xml.bind.JAXBContextprotected static final Loggerprotected jakarta.xml.bind.Marshallerprotected McProtocolVersionprotected booleanprotected List<PolicyAlternativeHolder>protected RmProtocolVersionprotected SecurityEnvironmentprotected booleanprotected X509Certificateprotected SOAPFactoryprotected SOAPVersionprotected SecurityPolicyVersionprotected longprotected booleanprotected TubeConfigurationprotected jakarta.xml.bind.Unmarshallerprotected static final Stringprotected static final Stringprotected Policyprotected PolicyMapprotected WSSCVersionprotected WSTrustVersionFields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
next -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSecurityTubeBase(SecurityTubeBase that, TubeCloner cloner) SecurityTubeBase(TubeConfiguration config, Tube nextTube) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddIncomingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) protected abstract SecurityPolicyHolderaddIncomingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) protected abstract voidaddIncomingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) protected abstract voidaddOutgoingFaultPolicy(Policy effectivePolicy, SecurityPolicyHolder sph, WSDLFault fault) protected abstract SecurityPolicyHolderaddOutgoingMP(WSDLBoundOperation operation, Policy policy, PolicyAlternativeHolder ph) protected abstract voidaddOutgoingProtocolPolicy(Policy effectivePolicy, String protocol, PolicyAlternativeHolder ph) protected booleanprotected booleanprotected booleanprotected voidbuildProtocolPolicy(Policy endpointPolicy, PolicyAlternativeHolder ph) protected voidcacheMessage(Packet packet) protected final voidcacheOperation(Message msg) protected voidcollectPolicies(List<PolicyAlternativeHolder> alternatives) Summary from Section 4.2, WS-Security Policy spec( version 1.1 July 2005 ).protected SecurityPolicyHolderconstructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming) protected SecurityPolicyHolderconstructPolicyHolder(Policy effectivePolicy, boolean isServer, boolean isIncoming, boolean ignoreST) protected RuntimeExceptionprotected Stringprotected abstract StringgetAction(WSDLOperation operation, boolean isIncomming) protected AlgorithmSuitegetAlgoSuite(AlgorithmSuite suite) protected AlgorithmSuitegetBindingAlgorithmSuite(Packet packet) protected Policyprotected List<PolicyAssertion>getInBoundSCP(Message message) protected MessagePolicygetInboundXWSBootstrapPolicy(Token scAssertion) protected List<PolicyAssertion>getIssuedTokenPoliciesFromBootstrapPolicy(Token scAssertion) protected List<PolicyAssertion>getKerberosTokenPoliciesFromBootstrapPolicy(Token scAssertion) protected WSDLBoundOperationgetOperation(Message message) protected PolicyMapKeygetOperationKey(Message message) protected List<PolicyAssertion>getOutBoundKTP(Packet packet, boolean isSCMessage) protected List<PolicyAssertion>getOutBoundSCP(Message message) protected MessagePolicygetOutgoingXWSBootstrapPolicy(Token scAssertion) protected MessagePolicygetOutgoingXWSSecurityPolicy(Packet packet, boolean isSCMessage) protected List<PolicyAssertion>getSecureConversationPolicies(Message message, String scope) protected SOAPFaultprotected SOAPFaultExceptionprotected SOAPFaultExceptionprotected ArrayList<PolicyAssertion>protected WSDLBoundOperationgetWSDLOpFromAction(Packet packet, boolean isIncomming) protected WSDLBoundOperationgetWSDLOpFromAction(Packet packet, boolean isIncomming, boolean isFault) protected WSSAssertiongetWssAssertion(WSSAssertion asser) protected booleanprotected ProcessingContextprotected ProcessingContextinitializeOutgoingProcessingContext(Packet packet, boolean isSCMessage) protected booleanprotected booleanisMakeConnectionMessage(Packet packet) protected booleanisRMMessage(Packet packet) protected booleanisSCCancel(Packet packet) protected booleanisSCMessage(Packet packet) protected booleanprotected booleanisTrustMessage(Packet packet) protected Classprotected StringpopulateConfigProperties(Set<PolicyAssertion> configAssertions, Properties props) protected final voidprotected PolicyAlternativeHolderresolveAlternative(Packet packet, boolean isSCMessage) protected MessagesecureOutboundMessage(Message message, ProcessingContext ctx) protected SOAPMessagesecureOutboundMessage(SOAPMessage message, ProcessingContext ctx) protected PolicySourceModelunmarshalPolicy(String resource) protected MessageverifyInboundMessage(Message message, ProcessingContext ctx) protected SOAPMessageverifyInboundMessage(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 jakarta.xml.bind.JAXBContext jaxbContext -
wsscVer
-
wsTrustVer
-
rmVer
-
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
-
soapFactory
-
wsPolicyMap
-
bpMSP
-
timestampTimeOut
protected long timestampTimeOut -
iterationsForPDK
protected int iterationsForPDK -
isEPREnabled
protected boolean isEPREnabled -
isCertValidityVerified
protected boolean isCertValidityVerified -
policyAlternatives
-
cachedOperation
Constants for RM Security Processing -
wsitConfig
-
marshaller
protected jakarta.xml.bind.Marshaller marshaller -
unmarshaller
protected jakarta.xml.bind.Unmarshaller unmarshaller -
spVersion
-
WSDLPORT
- See Also:
-
WSENDPOINT
- See Also:
-
serverCert
-
isCertValid
protected boolean isCertValid
-
-
Constructor Details
-
SecurityTubeBase
-
SecurityTubeBase
-
-
Method Details
-
secureOutboundMessage
-
generateInternalError
-
secureOutboundMessage
-
verifyInboundMessage
protected SOAPMessage verifyInboundMessage(SOAPMessage message, ProcessingContext ctx) throws WssSoapFaultException, XWSSecurityException -
verifyInboundMessage
protected Message verifyInboundMessage(Message message, ProcessingContext ctx) throws XWSSecurityException - Throws:
XWSSecurityException
-
getIssuedTokenPoliciesFromBootstrapPolicy
-
getKerberosTokenPoliciesFromBootstrapPolicy
-
getOutgoingXWSSecurityPolicy
-
getOperation
-
getInboundXWSBootstrapPolicy
-
getOutgoingXWSBootstrapPolicy
-
initializeInboundProcessingContext
-
bindingHasIssuedTokenPolicy
protected boolean bindingHasIssuedTokenPolicy() -
bindingHasSecureConversationPolicy
protected boolean bindingHasSecureConversationPolicy() -
bindingHasRMPolicy
protected boolean bindingHasRMPolicy() -
hasKerberosTokenPolicy
protected boolean hasKerberosTokenPolicy() -
initializeOutgoingProcessingContext
-
getSOAPFault
-
getSOAPFaultException
-
getSOAPFaultException
-
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
-
getOutBoundSCP
-
getOutBoundKTP
-
getSecureConversationPolicies
-
getTokens
-
getOperationKey
-
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
-
cacheMessage
-
getEffectiveBootstrapPolicy
- Throws:
PolicyException
-
unmarshalPolicy
- Throws:
PolicyExceptionIOException
-
cacheOperation
-
resetCachedOperation
protected final void resetCachedOperation() -
isSCMessage
-
isSCCancel
-
isSCRenew
-
isAddressingEnabled
protected boolean isAddressingEnabled() -
isTrustMessage
-
isRMMessage
-
isMakeConnectionMessage
-
getAction
-
getWSDLOpFromAction
-
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
-
loadClass
- Throws:
Exception
-
getAlgoSuite
-
getWssAssertion
-
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
-
resolveAlternative
-