このロケールの翻訳が存在しないため、英語バージョンのコンテンツを表示しています。 Help us translate this article!
安全なコンテキスト用
この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
The PublicKeyCredential
interface provides information about a public key / private key pair, which is a credential for logging in to a service using an un-phishable and data-breach resistant asymmetric key pair instead of a password. It inherits from Credential
, and was created by the Web Authentication API extension to the Credential Management API. Other interfaces that inherit from Credential
are PasswordCredential
and FederatedCredential
.
Note: This API is restricted to top-level contexts. Use from within an <iframe>
element will not have any effect.
Properties
PublicKeyCredential.type
読取専用 安全なコンテキスト用- Inherited from
Credential
. Always set to"public-key"
forPublicKeyCredential
instances. PublicKeyCredential.id
読取専用 安全なコンテキスト用- Inherited from
Credential
and overridden to be the base64url encoding of PublicKeyCredential.rawId. PublicKeyCredential.rawId
読取専用 安全なコンテキスト用- An
ArrayBuffer
that holds the globally unique identifier for this PublicKeyCredential. This identifier can be used to look up credentials for future calls toCredentialsContainer.get
. PublicKeyCredential.response
読取専用 安全なコンテキスト用- An instance of an
AuthenticatorResponse
object. It is either of typeAuthenticatorAttestationResponse
if the PublicKeyCredential was the results of a create() call, or of typeAuthenticatorAssertionResponse
if the PublicKeyCredential was the result of a get() call.
Methods
PublicKeyCredential.getClientExtensionResults()
安全なコンテキスト用- If any extensions were requested, this method will return the results of processing those extensions.
Specifications
Specification | Status | Comment |
---|---|---|
Web Authentication: An API for accessing Public Key Credentials Level 1 PublicKeyCredential interface の定義 |
勧告候補 | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
デスクトップ | モバイル | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
PublicKeyCredential | Chrome
完全対応
67
| Edge 完全対応 18 | Firefox
完全対応
60
| IE 未対応 なし | Opera 未対応 なし | Safari 未対応 なし | WebView Android 完全対応 70 | Chrome Android 完全対応 70 | Firefox Android
完全対応
60
| Opera Android 未対応 なし | Safari iOS 未対応 なし | Samsung Internet Android ? |
getClientExtensionResults | Chrome
完全対応
67
| Edge 完全対応 18 | Firefox
完全対応
60
| IE 未対応 なし | Opera 未対応 なし | Safari 未対応 なし | WebView Android 完全対応 70 | Chrome Android 完全対応 70 | Firefox Android
完全対応
60
| Opera Android 未対応 なし | Safari iOS 未対応 なし | Samsung Internet Android ? |
isUserVerifyingPlatformAuthenticatorAvailable | Chrome
完全対応
67
| Edge 完全対応 18 | Firefox
完全対応
60
| IE 未対応 なし | Opera 未対応 なし | Safari 未対応 なし | WebView Android 完全対応 70 | Chrome Android 完全対応 70 | Firefox Android
完全対応
60
| Opera Android 未対応 なし | Safari iOS 未対応 なし | Samsung Internet Android ? |
rawId | Chrome
完全対応
67
| Edge 完全対応 18 | Firefox
完全対応
60
| IE 未対応 なし | Opera 未対応 なし | Safari 未対応 なし | WebView Android 完全対応 70 | Chrome Android 完全対応 70 | Firefox Android
完全対応
60
| Opera Android 未対応 なし | Safari iOS 未対応 なし | Samsung Internet Android ? |
response | Chrome
完全対応
67
| Edge 完全対応 18 | Firefox
完全対応
60
| IE 未対応 なし | Opera 未対応 なし | Safari 未対応 なし | WebView Android 完全対応 70 | Chrome Android 完全対応 70 | Firefox Android
完全対応
60
| Opera Android 未対応 なし | Safari iOS 未対応 なし | Samsung Internet Android ? |
凡例
- 完全対応
- 完全対応
- 未対応
- 未対応
- 実装状況不明
- 実装状況不明
- 実装ノートを参照してください。
- 実装ノートを参照してください。
- ユーザーが明示的にこの機能を有効にしなければなりません。
- ユーザーが明示的にこの機能を有効にしなければなりません。