Class Credential
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class Credential : BoxedRecord, IEquatable<Credential>
- Inheritance
-
Credential
- Implements
- Inherited Members
Constructors
Credential(CredentialOwnedHandle)
public Credential(CredentialOwnedHandle handle)
Parameters
handle
CredentialOwnedHandle
Properties
Handle
public CredentialOwnedHandle Handle { get; }
Property Value
Methods
Copy()
[Version("2.2")]
public Credential Copy()
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(Credential?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Credential? other)
Parameters
other
CredentialAn object to compare with this object.
Returns
Free()
[Version("2.2")]
public void Free()
GetCertificate()
[Version("2.34")]
public TlsCertificate GetCertificate()
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetPassword()
[Version("2.2")]
public string GetPassword()
Returns
GetPersistence()
[Version("2.2")]
public CredentialPersistence GetPersistence()
Returns
GetUsername()
[Version("2.2")]
public string GetUsername()
Returns
HasPassword()
[Version("2.2")]
public bool HasPassword()
Returns
New(string, string, CredentialPersistence)
[Version("2.2")]
public static Credential New(string username, string password, CredentialPersistence persistence)
Parameters
username
stringpassword
stringpersistence
CredentialPersistence
Returns
NewForCertificate(TlsCertificate?, CredentialPersistence)
[Version("2.34")]
public static Credential NewForCertificate(TlsCertificate? certificate, CredentialPersistence persistence)
Parameters
certificate
TlsCertificatepersistence
CredentialPersistence
Returns
NewForCertificatePin(string, CredentialPersistence)
[Version("2.34")]
public static Credential NewForCertificatePin(string pin, CredentialPersistence persistence)
Parameters
pin
stringpersistence
CredentialPersistence