Policy Interceptors
Using binding.ws this figure shows where interceptors are currently added to the invocation and binding chains and some of the problems we have (as discussed recently on the ML)
Policy Summary
TBD - list of all the intents and policys that are supported by extension
binding.ws HTTP basic authentication
Phase |
Extension |
Intent |
PolicyModel |
Builder |
Provider |
Interceptor |
Notes |
---|---|---|---|---|---|---|---|
Component Impl |
Java |
|
|
|
|
|
|
Reference Wire |
|
|
|
|
|
|
|
Reference Binding Wire |
|
|
|
|
BasicAuthenticationReferencePolicyProvider |
BasicAuthenticationReferencePolicyInterceptor |
|
Reference Binding/EPR |
WS |
authentication |
BasicAuthenticationPolicy |
|
|
|
|
Service Binding/EP |
WS |
authentication |
BasicAuthenticationPolicy |
|
|
|
|
Service Binding Wire |
|
|
|
|
BasicAuthenticationServicePolicyProvider |
BasicAuthenticationServicePolicyInterceptor |
|
Service Wire |
|
|
|
|
|
|
|
Component Impl |
Java |
|
|
|
|
|
|
binding.ws HTTP ssl confidentiality - 1 way SSL
Phase |
Extension |
Intent |
PolicyModel |
Builder |
Provider |
Interceptor |
Notes |
---|---|---|---|---|---|---|---|
Component Impl |
Java |
|
|
|
|
|
|
Reference Wire |
|
|
|
|
|
|
|
Reference Binding Wire |
|
|
|
|
|
|
|
Reference Binding/EPR |
WS |
confidentiality |
HTTPSPolicy |
HTTPSPolicyProvider |
|
|
|
Service Binding/EP |
WS |
confidentiality |
HTTPSPolicy |
HTTPSPolicyProvider |
|
|
|
Service Binding Wire |
|
|
|
|
|
|
|
Service Wire |
|
|
|
|
|
|
|
Component Impl |
Java |
|
|
|
|
|
|
Note. The provider is is possibly badly named as it configures the trust/key store for the whole JVM. If you define two policy sets with different trust/key store configuration then only one will be used. Should the provider be more generically named/located to indicate this?
binding.ws HTTP ssl confidentiality and client authentication - 2 way SSL
TBD
Policy Transaction Default
Phase |
Extension |
Intent |
PolicyModel |
Builder |
Provider |
Interceptor |
Notes |
---|---|---|---|---|---|---|---|
Component Impl |
Java |
|
|
|
|
|
TBD - impl specific defaults |
Reference Wire - Impl |
|
|
|
|
TransactionImplementationPolicyProvider |
|
look at policy list and add appropriate defaults |
Reference Wire - Ref |
|
|
|
|
TransactionReferencePolicyProvider |
|
look at policy list and add appropriate defaults |
Reference Binding/EPR |
WS |
|
|
|
|
|
TBD - binding specific defaults |
Service Binding/EP |
WS |
|
|
|
|
|
TBD - binding specific defaults |
Service Wire - Svc |
|
|
|
|
TransactionServicePolicyProvider |
|
look at policy list and add appropriate defaults |
Service Wire - Impl |
|
|
|
|
TransactionImplementationPolicyProvider |
|
look at policy list and add appropriate defaults |
Component Impl |
Java |
|
|
|
|
|
TBD - impl specific defaults |
Note. Subsequently the following will process the new intents that have been added
Policy Transaction Managed Global Propagates
Phase |
Extension |
Intent |
PolicyModel |
Builder |
Provider |
Interceptor |
Notes |
---|---|---|---|---|---|---|---|
Component Impl |
Spring |
managedTransaction.global |
TransactionPolicy |
|
TBD |
TBD |
|
Component Impl |
Java |
managedTransaction.global |
TransactionPolicy |
|
TransactionImplementationPolicyProvider |
TransactionInterceptor |
Seems odd that there is only one interceptor |
Reference Wire - Impl |
|
|
|
|
|
|
|
Reference Wire - Ref |
|
|
|
|
TransactionReferencePolicyProvider |
TransactionInterceptor |
|
Reference Binding/EPR |
WS |
propagatesTransaction |
TransactionPolicy |
|
? |
TransactionReferenceBindingWSInterceptor |
|
Reference Binding/EPR |
SCA |
propagatesTransaction |
TransactionPolicy |
|
|
|
Is interceptor required? |
Service Binding/EP |
SCA |
propagatesTransaction |
TransactionPolicy |
|
|
|
Is interceptor required? |
Service Binding/EP |
WS |
propagatesTransaction |
TransactionPolicy |
|
? |
TransactionServiceBindingWSInterceptor |
|
Service Wire |
|
|
|
|
TransactionServicePolicyProvider |
TransactionInterceptor |
|
Component Impl |
Java |
managedTransaction.global |
TransactionPolicy |
|
TransactionImplementationPolicyProvider |
TransactionInterceptor |
|
Component Impl |
Spring |
managedTransaction.global |
TransactionPolicy |
|
TBD |
TBD |
|
Policy runtime template
Phase |
Extension |
Intent |
PolicyModel |
Builder |
Provider |
Interceptor |
Notes |
---|---|---|---|---|---|---|---|
Component Impl |
Java |
|
|
|
|
|
|
Reference Wire |
|
|
|
|
|
|
|
Reference Binding Wire |
|
|
|
|
|
|
|
Reference Binding/EPR |
|
|
|
|
|
|
|
Service Binding/EP |
|
|
|
|
|
|
|
Service Binding Wire |
|
|
|
|
|
|
|
Service Wire |
|
|
|
|
|
|
|
Component Impl |
Java |
|
|
|
|
|
|