| 720 | } |
| 721 | |
| 722 | const JWTPublicKey* JWKSSnapshot::LookupHSKey(const std::string& kid) const { |
| 723 | auto find_it = hs_key_map_.find(kid); |
| 724 | if (find_it == hs_key_map_.end()) { |
| 725 | // Could not find key for the given key ID. |
| 726 | return nullptr; |
| 727 | } |
| 728 | return find_it->second.get(); |
| 729 | } |
| 730 | |
| 731 | const JWTPublicKey* JWKSSnapshot::LookupRSAPublicKey(const std::string& kid) const { |
| 732 | auto find_it = rsa_pub_key_map_.find(kid); |