| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2015 Google Inc. All rights reserved. | 2 * Copyright (C) 2015 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const WebRTCKeyParams&, | 58 const WebRTCKeyParams&, |
| 59 const WebURL&, | 59 const WebURL&, |
| 60 const WebURL& firstPartyForCookies, | 60 const WebURL& firstPartyForCookies, |
| 61 uint64_t expiresMs, | 61 uint64_t expiresMs, |
| 62 std::unique_ptr<WebRTCCertificateCallback> observer) = 0; | 62 std::unique_ptr<WebRTCCertificateCallback> observer) = 0; |
| 63 | 63 |
| 64 // Determines if the parameters are supported by generateCertificate. | 64 // Determines if the parameters are supported by generateCertificate. |
| 65 // For example, if the number of bits of some parameter is too small or too
large we | 65 // For example, if the number of bits of some parameter is too small or too
large we |
| 66 // may want to reject it for security or performance reasons. | 66 // may want to reject it for security or performance reasons. |
| 67 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0; | 67 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0; |
| 68 |
| 69 // Creates a certificate from the PEM strings. See also |WebRTCCertificate::
toPEM|. |
| 70 virtual std::unique_ptr<WebRTCCertificate> fromPEM( |
| 71 const std::string& pemPrivateKey, |
| 72 const std::string& pemCertificate) = 0; |
| 68 }; | 73 }; |
| 69 | 74 |
| 70 } // namespace blink | 75 } // namespace blink |
| 71 | 76 |
| 72 #endif // WebRTCCertificateGenerator_h | 77 #endif // WebRTCCertificateGenerator_h |
| OLD | NEW |