Class Credential
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class Credential : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Credential>, IDisposable
- Inheritance
-
Credential
- Implements
- Inherited Members
Constructors
Credential(CredentialOwnedHandle)
public Credential(CredentialOwnedHandle handle)
Parameters
handleCredentialOwnedHandle
Properties
Handle
public CredentialOwnedHandle Handle { get; }
Property Value
Methods
Copy()
[Version("2.2")]
public Credential Copy()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe 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
otherCredentialAn 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
usernamestringpasswordstringpersistenceCredentialPersistence
Returns
NewForCertificate(TlsCertificate?, CredentialPersistence)
[Version("2.34")]
public static Credential NewForCertificate(TlsCertificate? certificate, CredentialPersistence persistence)
Parameters
certificateTlsCertificatepersistenceCredentialPersistence
Returns
NewForCertificatePin(string, CredentialPersistence)
[Version("2.34")]
public static Credential NewForCertificatePin(string pin, CredentialPersistence persistence)
Parameters
pinstringpersistenceCredentialPersistence