Liking cljdoc? Tell your friends :D

chromex.ext.enterprise.platform-keys

clj

Use the chrome.enterprise.platformKeys API to generate hardware-backed keys and to install certificates for these keys. The certificates will be managed by the platform and can be used for TLS authentication, network access or by other extension through 'platformKeys chrome.platformKeys'.

Use the chrome.enterprise.platformKeys API to generate
hardware-backed keys and to install certificates for these keys. The
certificates will be managed by the platform and can be used for TLS
authentication, network access or by other extension through
'platformKeys chrome.platformKeys'.

  * available since Chrome 37
  * https://developer.chrome.com/extensions/enterprise.platformKeys
raw docstring

api-tableclj

source

challenge-machine-keyclj/smacro

(challenge-machine-key challenge)
(challenge-machine-key challenge register-key)

Challenges a hardware-backed Enterprise Machine Key and emits the response as part of a remote attestation protocol. Only useful on Chrome OS and in conjunction with the Verified Access Web API which both issues challenges and verifies responses. A successful verification by the Verified Access Web API is a strong signal of all of the following: * The current device is a legitimate Chrome OS device. * The current device is managed by the domain specified during verification. * The current signed-in user is managed by the domain specified during verification. * The current device state complies with enterprise device policy. For example, a policy may specify that the device must not be in developer mode. * Any device identity emitted by the verification is tightly bound to the hardware of the current device. This function is highly restricted and will fail if the current device is not managed, the current user is not managed, or if this operation has not explicitly been enabled for the caller by enterprise device policy. The Enterprise Machine Key does not reside in the 'system' token and is not accessible by any other API.

|challenge| - A challenge as emitted by the Verified Access Web API. |register-key| - If set, the current Enterprise Machine Key is registered with the 'system' token and relinquishes the Enterprise Machine Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise Machine Key.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [response] where:

|response| - The challenge response.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-challengeMachineKey.

Challenges a hardware-backed Enterprise Machine Key and emits the response as part of a remote attestation protocol. Only
useful on Chrome OS and in conjunction with the Verified Access Web API which both issues challenges and verifies
responses. A successful verification by the Verified Access Web API is a strong signal of all of the following: * The
current device is a legitimate Chrome OS device. * The current device is managed by the domain specified during
verification. * The current signed-in user is managed by the domain specified during   verification. * The current device
state complies with enterprise device policy. For   example, a policy may specify that the device must not be in developer
mode. * Any device identity emitted by the verification is tightly bound to the   hardware of the current device. This
function is highly restricted and will fail if the current device is not managed, the current user is not managed, or if
this operation has not explicitly been enabled for the caller by enterprise device policy. The Enterprise Machine Key does
not reside in the 'system' token and is not accessible by any other API.

  |challenge| - A challenge as emitted by the Verified Access Web API.
  |register-key| - If set, the current Enterprise Machine Key is registered                with the 'system' token and
                   relinquishes the                Enterprise Machine Key role. The key can then be
                   associated with a certificate and used like any other                signing key. This key is 2048-bit
                   RSA. Subsequent calls                to this function will then generate a new Enterprise
                   Machine Key.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [response] where:

  |response| - The challenge response.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-challengeMachineKey.
sourceraw docstring

challenge-machine-key*cljs

(challenge-machine-key* config challenge register-key)
source

challenge-user-keyclj/smacro

(challenge-user-key challenge register-key)

Challenges a hardware-backed Enterprise User Key and emits the response as part of a remote attestation protocol. Only useful on Chrome OS and in conjunction with the Verified Access Web API which both issues challenges and verifies responses. A successful verification by the Verified Access Web API is a strong signal of all of the following: * The current device is a legitimate Chrome OS device. * The current device is managed by the domain specified during verification. * The current signed-in user is managed by the domain specified during verification. * The current device state complies with enterprise user policy. For example, a policy may specify that the device must not be in developer mode. * The public key emitted by the verification is tightly bound to the hardware of the current device and to the current signed-in user. This function is highly restricted and will fail if the current device is not managed, the current user is not managed, or if this operation has not explicitly been enabled for the caller by enterprise user policy. The Enterprise User Key does not reside in the 'user' token and is not accessible by any other API.

|challenge| - A challenge as emitted by the Verified Access Web API. |register-key| - If set, the current Enterprise User Key is registered with the 'user' token and relinquishes the Enterprise User Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise User Key.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [response] where:

|response| - The challenge response.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-challengeUserKey.

Challenges a hardware-backed Enterprise User Key and emits the response as part of a remote attestation protocol. Only
useful on Chrome OS and in conjunction with the Verified Access Web API which both issues challenges and verifies
responses. A successful verification by the Verified Access Web API is a strong signal of all of the following: * The
current device is a legitimate Chrome OS device. * The current device is managed by the domain specified during
verification. * The current signed-in user is managed by the domain specified during   verification. * The current device
state complies with enterprise user policy. For   example, a policy may specify that the device must not be in developer
mode. * The public key emitted by the verification is tightly bound to the   hardware of the current device and to the
current signed-in user. This function is highly restricted and will fail if the current device is not managed, the current
user is not managed, or if this operation has not explicitly been enabled for the caller by enterprise user policy. The
Enterprise User Key does not reside in the 'user' token and is not accessible by any other API.

  |challenge| - A challenge as emitted by the Verified Access Web API.
  |register-key| - If set, the current Enterprise User Key is registered with                the 'user' token and
                   relinquishes the                Enterprise User Key role. The key can then be associated
                   with a certificate and used like any other signing key.                This key is 2048-bit RSA.
                   Subsequent calls to this                function will then generate a new Enterprise User Key.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [response] where:

  |response| - The challenge response.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-challengeUserKey.
sourceraw docstring

challenge-user-key*cljs

(challenge-user-key* config challenge register-key)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-certificatesclj/smacro

(get-certificates token-id)

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.

|token-id| - The id of a Token returned by getTokens.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [certificates] where:

|certificates| - The list of certificates, each in DER encoding of a X.509 certificate.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-getCertificates.

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.

  |token-id| - The id of a Token returned by getTokens.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [certificates] where:

  |certificates| - The list of certificates, each in DER encoding of a X.509     certificate.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-getCertificates.
sourceraw docstring

get-certificates*cljs

(get-certificates* config token-id)
source

get-tokensclj/smacro

(get-tokens)

Returns the available Tokens. In a regular user's session the list will always contain the user's token with id 'user'. If a system-wide TPM token is available, the returned list will also contain the system-wide token with id 'system'. The system-wide token will be the same for all sessions on this device (device in the sense of e.g. a Chromebook).

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [tokens] where:

|tokens| - The list of available tokens.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-getTokens.

Returns the available Tokens. In a regular user's session the list will always contain the user's token with id 'user'. If
a system-wide TPM token is available, the returned list will also contain the system-wide token with id 'system'. The
system-wide token will be the same for all sessions on this device (device in the sense of e.g. a Chromebook).

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [tokens] where:

  |tokens| - The list of available tokens.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-getTokens.
sourceraw docstring

get-tokens*cljs

(get-tokens* config)
source

import-certificateclj/smacro

(import-certificate token-id certificate)

Imports certificate 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.

|token-id| - The id of a Token returned by getTokens. |certificate| - The DER encoding of a X.509 certificate.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-importCertificate.

Imports certificate 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.

  |token-id| - The id of a Token returned by getTokens.
  |certificate| - The DER encoding of a X.509 certificate.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-importCertificate.
sourceraw docstring

import-certificate*cljs

(import-certificate* config token-id certificate)
source

remove-certificateclj/smacro

(remove-certificate token-id certificate)

Removes certificate 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.

|token-id| - The id of a Token returned by getTokens. |certificate| - The DER encoding of a X.509 certificate.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-removeCertificate.

Removes certificate 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.

  |token-id| - The id of a Token returned by getTokens.
  |certificate| - The DER encoding of a X.509 certificate.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/extensions/enterprise.platformKeys#method-removeCertificate.
sourceraw docstring

remove-certificate*cljs

(remove-certificate* config token-id certificate)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.enterprise.platform-keys namespace.

Taps all valid non-deprecated events in chromex.ext.enterprise.platform-keys namespace.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close