Interface SecurityPolicy
- All Superinterfaces:
BasePolicy,BaseSecurityPolicy,HttpPolicy,HttpSecurityPolicy,Policy
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Fields inherited from interface io.gravitee.gateway.reactive.api.policy.base.BaseSecurityPolicy
DEFAULT_ORDER -
Method Summary
Modifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Maybe<SecurityToken>Deprecated, for removal: This API element is subject to removal in a future version.Extracts theSecurityTokenfrom the request execution context.io.reactivex.rxjava3.core.Maybe<SecurityToken>Deprecated, for removal: This API element is subject to removal in a future version.default io.reactivex.rxjava3.core.CompletableDeprecated, for removal: This API element is subject to removal in a future version.TheonMessageResponse(MessageExecutionContext)method shouldn't call on aSecurityPolicydefault io.reactivex.rxjava3.core.CompletableDeprecated, for removal: This API element is subject to removal in a future version.default io.reactivex.rxjava3.core.CompletableDeprecated, for removal: This API element is subject to removal in a future version.TheonResponse(HttpSimpleExecutionContext)method shouldn't call on aSecurityPolicydefault io.reactivex.rxjava3.core.CompletableDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface io.gravitee.gateway.reactive.api.policy.base.BasePolicy
idMethods inherited from interface io.gravitee.gateway.reactive.api.policy.base.BaseSecurityPolicy
order, requireSubscriptionMethods inherited from interface io.gravitee.gateway.reactive.api.policy.Policy
onMessageRequest, onMessageRequest, onRequest, onRequest
-
Method Details
-
extractSecurityToken
default io.reactivex.rxjava3.core.Maybe<SecurityToken> extractSecurityToken(HttpPlainExecutionContext ctx) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpSecurityPolicyExtracts theSecurityTokenfrom the request execution context. If no relevantSecurityTokenis found, it returns an empty Maybe, so that policy won't be executed.- Specified by:
extractSecurityTokenin interfaceHttpSecurityPolicy- Parameters:
ctx- the current request execution context.- Returns:
- the
SecurityTokenfound in the request execution context
-
extractSecurityToken
Deprecated, for removal: This API element is subject to removal in a future version. -
onResponse
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onResponsein interfacePolicy
-
onResponse
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpSecurityPolicyTheonResponse(HttpSimpleExecutionContext)method shouldn't call on aSecurityPolicy- Specified by:
onResponsein interfaceHttpPolicy- Specified by:
onResponsein interfaceHttpSecurityPolicy- Specified by:
onResponsein interfacePolicy- Parameters:
ctx- the current request execution context allowing to access the request, response and attributes.- Returns:
- a
UnsupportedOperationException</code
-
onMessageResponse
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onMessageResponsein interfacePolicy
-
onMessageResponse
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpSecurityPolicyTheonMessageResponse(MessageExecutionContext)method shouldn't call on aSecurityPolicy- Specified by:
onMessageResponsein interfaceHttpPolicy- Specified by:
onMessageResponsein interfaceHttpSecurityPolicy- Specified by:
onMessageResponsein interfacePolicy- Parameters:
ctx- the current request execution context allowing to access the request, response and attributes.- Returns:
- the order of the security policy when multiple security policies can be involved.
-
HttpSecurityPolicy