3.2 <WebKitCredential>

Structure: <WebKitCredential>

Groups information used for user authentication.

Procedures

Method: credential:copy self ⇒ %return
Method: copy self ⇒ %return

Make a copy of the <WebKitCredential>.

self

Passed: a <WebKitCredential>.

a <WebKitCredential>

%return

Returned: a <WebKitCredential>.

A copy of passed in <WebKitCredential>

Method: credential:free self
Method: free self

Free the <WebKitCredential>.

self

Passed: a <WebKitCredential>.

A <WebKitCredential>

Method: credential:get-certificate self ⇒ %return
Method: get-certificate self ⇒ %return

Get the certificate currently held by this <WebKitCredential>.

self

Passed: a <WebKitCredential>.

a <WebKitCredential>

%return

Returned: a <GTlsCertificate>.

a <GTlsCertificate>, or #f

Method: credential:get-password self ⇒ %return
Method: get-password self ⇒ %return

Get the password currently held by this <WebKitCredential>.

self

Passed: a <WebKitCredential>.

a <WebKitCredential>

%return

Returned: a string.

The password stored in the <WebKitCredential>.

Method: credential:get-persistence self ⇒ %return
Method: get-persistence self ⇒ %return

Get the persistence mode currently held by this <WebKitCredential>.

self

Passed: a <WebKitCredential>.

a <WebKitCredential>

%return

Returned: a <WebKitCredentialPersistence>.

The <WebKitCredentialPersistence> stored in the <WebKitCredential>.

Method: credential:get-username self ⇒ %return
Method: get-username self ⇒ %return

Get the username currently held by this <WebKitCredential>.

self

Passed: a <WebKitCredential>.

a <WebKitCredential>

%return

Returned: a string.

The username stored in the <WebKitCredential>.

Method: credential:has-password? self ⇒ %return
Method: has-password? self ⇒ %return

Determine whether this credential has a password stored.

self

Passed: a <WebKitCredential>.

a <WebKitCredential>

%return

Returned: a boolean.

#t if the credential has a password or #f otherwise.

Procedure: credential:new username password persistence ⇒ %return

Create a new credential from the provided username, password and persistence mode.

username

Passed: a string.

The username for the new credential

password

Passed: a string.

The password for the new credential

persistence

Passed: a <WebKitCredentialPersistence>, or one of its symbols.

The <WebKitCredentialPersistence> of the new credential

%return

Returned: a <WebKitCredential>.

A <WebKitCredential>.

Procedure: credential:new-for-certificate certificate persistence ⇒ %return

Create a new credential from the certificate and persistence mode.

Note that permanent is not supported for certificate credentials.

certificate

Passed: a <GTlsCertificate>, or #f.

The <GTlsCertificate>, or #f

persistence

Passed: a <WebKitCredentialPersistence>, or one of its symbols.

The <WebKitCredentialPersistence> of the new credential

%return

Returned: a <WebKitCredential>.

A <WebKitCredential>.

Procedure: credential:new-for-certificate-pin pin persistence ⇒ %return

Create a new credential from the provided PIN and persistence mode.

Note that permanent is not supported for certificate pin credentials.

pin

Passed: a string.

The PIN for the new credential

persistence

Passed: a <WebKitCredentialPersistence>, or one of its symbols.

The <WebKitCredentialPersistence> of the new credential

%return

Returned: a <WebKitCredential>.

A <WebKitCredential>.