Table of Contents

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

CredentialOwnedHandle

Methods

Copy()

[Version("2.2")]
public Credential Copy()

Returns

Credential

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(Credential?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Credential? other)

Parameters

other Credential

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Free()

[Version("2.2")]
public void Free()

GetCertificate()

[Version("2.34")]
public TlsCertificate GetCertificate()

Returns

TlsCertificate

GetGType()

public static Type GetGType()

Returns

Type

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

string

GetPersistence()

[Version("2.2")]
public CredentialPersistence GetPersistence()

Returns

CredentialPersistence

GetUsername()

[Version("2.2")]
public string GetUsername()

Returns

string

HasPassword()

[Version("2.2")]
public bool HasPassword()

Returns

bool

New(string, string, CredentialPersistence)

[Version("2.2")]
public static Credential New(string username, string password, CredentialPersistence persistence)

Parameters

username string
password string
persistence CredentialPersistence

Returns

Credential

NewForCertificate(TlsCertificate?, CredentialPersistence)

[Version("2.34")]
public static Credential NewForCertificate(TlsCertificate? certificate, CredentialPersistence persistence)

Parameters

certificate TlsCertificate
persistence CredentialPersistence

Returns

Credential

NewForCertificatePin(string, CredentialPersistence)

[Version("2.34")]
public static Credential NewForCertificatePin(string pin, CredentialPersistence persistence)

Parameters

pin string
persistence CredentialPersistence

Returns

Credential