Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1618)

Unified Diff: chrome/common/extensions/api/enterprise_platform_keys.idl

Issue 312503004: Make enterprise.platformKeys documentation public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/extensions/docs/templates/intros/enterprise_platformKeys.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/enterprise_platform_keys.idl
diff --git a/chrome/common/extensions/api/enterprise_platform_keys.idl b/chrome/common/extensions/api/enterprise_platform_keys.idl
index aac6e626ee6cc55c64bbdddb5dc667bffdf04fc7..2ffeb2e0f5dd4b63d2d9c83dee9170e67111bdc3 100644
--- a/chrome/common/extensions/api/enterprise_platform_keys.idl
+++ b/chrome/common/extensions/api/enterprise_platform_keys.idl
@@ -8,23 +8,35 @@
// for TLS authentication and network access.
[platforms = ("chromeos")]
namespace enterprise.platformKeys {
- [nocompile] dictionary Token {
- // Uniquely identifies this Token. Static IDs are 'user' and 'device',
+ [nocompile, noinline_doc] dictionary Token {
+ // Uniquely identifies this <code>Token</code>.
+ // <p>Static IDs are <code>"user"</code> and <code>"device"</code>,
// referring to the platform's user-specific and the device-wide hardware
// token, respectively. Any other tokens (with other identifiers) might be
- // returned by getTokens.
+ // returned by $(ref:enterprise.platformKeys.getTokens).</p>
DOMString id;
- // Implements the WebCrypto's <code>SubtleCrypto</code> interface. The
- // crypto operations are hardware-backed.
+ // Implements the WebCrypto's
+ // <a href="http://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface">SubtleCrypto</a>
+ // interface. The cryptographic operations, including key generation, are
+ // hardware-backed.
+ // <p>Only non-extractable RSASSA-PKCS1-V1_5 keys with
+ // <code>modulusLength</code> up to 2048 can be generated. Each key can be
+ // used for signing data at most once.</p>
+ // <p>Keys generated on a specific <code>Token</code> cannot be used with
+ // any other Tokens, nor can they be used with
+ // <code>window.crypto.subtle</code>. Equally, <code>Key</code> objects
+ // created with <code>window.crypto.subtle</code> cannot be used with this
+ // interface.</p>
[instanceOf = SubtleCrypto] object subtleCrypto;
};
// Invoked by <code>getTokens</code> with the list of available Tokens.
+ // |tokens|: The list of available tokens.
callback GetTokensCallback = void(Token[] tokens);
// Callback to which the certificates are passed.
- // |certificates| The list of certificates, each in DER encoding of a X.509
+ // |certificates|: The list of certificates, each in DER encoding of a X.509
// certificate.
callback GetCertificatesCallback = void(ArrayBuffer[] certificates);
@@ -34,43 +46,40 @@ namespace enterprise.platformKeys {
interface Functions {
// Returns the available Tokens. In a regular user's session the list will
- // always contain the user's token with id 'user'. If a device-wide TPM
- // token is available it will also contain the device-wide token with id
- // 'device'. The device-wide token will be the same for all sessions on this
- // device (device in the sense of e.g. a Chromebook).
+ // always contain the user's token with <code>id</code> <code>"user"</code>.
+ // If a device-wide TPM token is available it will also contain the
+ // device-wide token with <code>id</code> <code>"device"</code>. The
+ // device-wide token will be the same for all sessions on this device
+ // (device in the sense of e.g. a Chromebook).
[nocompile] static void getTokens(GetTokensCallback callback);
// Returns the list of all client certificates available from the given
// token. Can be used to check for the existence and expiration of client
// certificates that are usable for a certain authentication.
- // |tokenId| The id of a Token returned by <code>getTokens</code>.
- // |callback| Called back with the list of the available certificates.
+ // |tokenId|: The id of a Token returned by <code>getTokens</code>.
+ // |callback|: Called back with the list of the available certificates.
static void getCertificates(DOMString tokenId,
GetCertificatesCallback callback);
- // Imports |certificate| to the given token if the certified key is already
- // stored in this token.
+ // Imports <code>certificate</code> to the given token if the certified key
+ // is already stored in this token.
// After a successful certification request, this function should be used to
// store the obtained certificate and to make it available to the operating
// system and browser for authentication.
- // TODO: Instead of ArrayBuffer should be (ArrayBuffer or ArrayBufferView),
- // or at least (ArrayBuffer or Uint8Array).
- // |tokenId| The id of a Token returned by <code>getTokens</code>.
- // |certificate| The DER encoding of a X.509 certificate.
- // |callback| Called back when this operation is finished.
+ // |tokenId|: The id of a Token returned by <code>getTokens</code>.
+ // |certificate|: The DER encoding of a X.509 certificate.
+ // |callback|: Called back when this operation is finished.
static void importCertificate(DOMString tokenId,
ArrayBuffer certificate,
optional DoneCallback callback);
- // Removes |certificate| from the given token if present.
+ // Removes <code>certificate</code> from the given token if present.
// Should be used to remove obsolete certificates so that they are not
// considered during authentication and do not clutter the certificate
// choice. Should be used to free storage in the certificate store.
- // TODO: Instead of ArrayBuffer should be (ArrayBuffer or ArrayBufferView),
- // or at least (ArrayBuffer or Uint8Array).
- // |tokenId| The id of a Token returned by <code>getTokens</code>.
- // |certificate| The DER encoding of a X.509 certificate.
- // |callback| Called back when this operation is finished.
+ // |tokenId|: The id of a Token returned by <code>getTokens</code>.
+ // |certificate|: The DER encoding of a X.509 certificate.
+ // |callback|: Called back when this operation is finished.
static void removeCertificate(DOMString tokenId,
ArrayBuffer certificate,
optional DoneCallback callback);
« no previous file with comments | « no previous file | chrome/common/extensions/docs/templates/intros/enterprise_platformKeys.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698