\brief Validate a per-call client token. \param[in] context The call context. \param[in] token The client token. May be the empty string if the client does not provide a token. \param[out] peer_identity The identity of the peer, if this authentication method supports it. \return Status OK if the token is valid, any other status if validation failed
| 71 | /// \return Status OK if the token is valid, any other status if |
| 72 | /// validation failed |
| 73 | virtual Status IsValid(const ServerCallContext& context, const std::string& token, |
| 74 | std::string* peer_identity) { |
| 75 | // TODO: We can make this pure virtual function when we remove |
| 76 | // the deprecated version. |
| 77 | ARROW_SUPPRESS_DEPRECATION_WARNING |
| 78 | return IsValid(token, peer_identity); |
| 79 | ARROW_UNSUPPRESS_DEPRECATION_WARNING |
| 80 | } |
| 81 | /// \brief Validate a per-call client token. |
| 82 | /// \param[in] token The client token. May be the empty string if |
| 83 | /// the client does not provide a token. |
nothing calls this directly
no test coverage detected