@ThreadSafe public interface RegistrationInterceptor extends Lifecycle
enabled
SPI implementation will be called when an HTTP
request is received at the client registration endpoint.
An SPI implementation which requires a client X.509 certificate included
in the HTTP request and successfully validated by the web server / TLS proxy
can retrieve it using the HTTPRequest.getClientX509Certificate()
and
related methods.
Implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
default com.nimbusds.oauth2.sdk.http.HTTPRequest |
interceptDeleteRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest,
InterceptorContext interceptorCtx)
Intercepts an HTTP DELETE request at the client registration
endpoint.
|
default com.nimbusds.oauth2.sdk.http.HTTPRequest |
interceptGetRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest,
InterceptorContext interceptorCtx)
Intercepts an HTTP GET request at the client registration endpoint.
|
default com.nimbusds.oauth2.sdk.http.HTTPRequest |
interceptPostRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest,
InterceptorContext interceptorCtx)
Intercepts an HTTP POST request at the client registration endpoint.
|
default com.nimbusds.oauth2.sdk.http.HTTPRequest |
interceptPutRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest,
InterceptorContext interceptorCtx)
Intercepts an HTTP PUT request at the client registration endpoint.
|
default com.nimbusds.oauth2.sdk.http.HTTPRequest interceptPostRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest, InterceptorContext interceptorCtx) throws WrappedHTTPResponseException
httpRequest
- The HTTP POST request.interceptorCtx
- The interceptor context.WrappedHTTPResponseException
- To return an HTTP (error)
response immediately.default com.nimbusds.oauth2.sdk.http.HTTPRequest interceptGetRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest, InterceptorContext interceptorCtx) throws WrappedHTTPResponseException
httpRequest
- The HTTP GET request.interceptorCtx
- The interceptor context.WrappedHTTPResponseException
- To return an HTTP (error)
response immediately.default com.nimbusds.oauth2.sdk.http.HTTPRequest interceptPutRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest, InterceptorContext interceptorCtx) throws WrappedHTTPResponseException
httpRequest
- The HTTP PUT request.interceptorCtx
- The interceptor context.WrappedHTTPResponseException
- To return an HTTP (error)
response immediately.default com.nimbusds.oauth2.sdk.http.HTTPRequest interceptDeleteRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest, InterceptorContext interceptorCtx) throws WrappedHTTPResponseException
httpRequest
- The HTTP DELETE request.interceptorCtx
- The interceptor context.WrappedHTTPResponseException
- To return an HTTP (error)
response immediately.Copyright © 2021 Connect2id Ltd.. All rights reserved.