Files
webrtc/rtcoauthcredential.go
2018-08-28 01:03:09 -07:00

16 lines
607 B
Go

package webrtc
// RTCOAuthCredential represents OAuth credential information which is used by
// the STUN/TURN client to connect to an ICE server as defined in
// https://tools.ietf.org/html/rfc7635. Note that the kid parameter is not
// located in RTCOAuthCredential, but in RTCIceServer's username member.
type RTCOAuthCredential struct {
// MacKey is a base64-url encoded format. It is used in STUN message
// integrity hash calculation.
MacKey string
// AccessToken is a base64-encoded format. This is an encrypted
// self-contained token that is opaque to the application.
AccessToken string
}