RTCPeerConnection: getIdentityAssertion() method

The getIdentityAssertion() method of the RTCPeerConnection interface initiates the gathering of an identity assertion. This has an effect only if the signalingState is not "closed".

It is not expected for the application dealing with the RTCPeerConnection: this is automatically done; an explicit call only allows to anticipate the need.

Syntax

js
getIdentityAssertion()

Parameters

None.

Return value

A Promise which resolves to an identity assertion encoded as a string.

Example

js
const pc = new RTCPeerConnection();

pc.setIdentityProvider("developer.mozilla.org");
const assertion = await pc.getIdentityAssertion();

Specifications

Specification
Identity for WebRTC 1.0
# dom-rtcpeerconnection-getidentityassertion

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
getIdentityAssertion
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge 18 – 18 (Release date: 2018-10-02)
footnote Removed in 79 and later
Firefox – Full support
Firefox 40 (Release date: 2015-08-11)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Chrome Android – No support
Chrome Android
footnote No support
Firefox for Android – Full support
Firefox for Android 40 (Release date: 2015-08-11)
footnote Full support
Opera Android – No support
Opera Android
footnote No support
Safari on iOS – No support
Safari on iOS
footnote No support
Samsung Internet – No support
Samsung Internet
footnote No support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – No support
WebView on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

See also