I - the type of incoming Request. Must be HttpRequest or RpcRequest.O - the type of outgoing Response. Must be HttpResponse or RpcResponse.@FunctionalInterface public interface AuthFailureHandler<I extends Request,O extends Response>
Authorizer.| Modifier and Type | Method and Description |
|---|---|
O |
authFailed(Service<I,O> delegate,
ServiceRequestContext ctx,
I req,
Throwable cause)
Invoked when the authorization of the specified
Request has failed. |
O authFailed(Service<I,O> delegate, ServiceRequestContext ctx, I req, Throwable cause) throws Exception
Request has failed.delegate - the next Service in the decoration chainctx - the ServiceRequestContext of reqreq - the Request being handledcause - null if req has been rejected by the Authorizer.
non-null if the Authorizer raised an Exception.ExceptionCopyright © 2020 LeanCloud. All rights reserved.