Class Credential
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The Credential interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision.
[Value("Credential")]
public class Credential
- Inheritance
-
Credential
- Derived
- Inherited Members
Remarks
Credential objects may be of the following types:
Constructors
Credential()
public Credential()
Properties
Id
The id read-only property of the Credential interface returns a string containing the credential's identifier. This might be a GUID, username, or email address, or some other value, depending on the type of credential.
[Value("id")]
public string Id { get; }
Property Value
- string
A string containing the credential's identifier.
Remarks
Type
The type read-only property of the Credential interface returns a string containing the credential's type. Valid values are password, federated, public-key, identity and otp.
[Value("type")]
public string Type { get; }
Property Value
- string
A string contains a credential's given name.
Remarks
Methods
IsConditionalMediationAvailable()
NOTE
ExperimentalisConditionalMediationAvailable() static method of the Credential interface returns a {{jsxref("Promise")}} which resolves to false.
[Value("isConditionalMediationAvailable")]
public static Task<bool> IsConditionalMediationAvailable()
Returns
Remarks
Subclasses of Credential override this method if they support conditional mediation. See IsConditionalMediationAvailable(), for example.
WillRequestConditionalCreation()
[Value("willRequestConditionalCreation")]
public static Task<GlobalObject.Undefined> WillRequestConditionalCreation()