Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FingerprintAttribute

The SDP session attribute "fingerprint" provides an encryption certificate fingerprint to a remote peer for use with DTLS.

Hierarchy

  • Attribute
    • FingerprintAttribute

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.sdp.ice.fingerprintAttribute class.

    Parameters

    • hashFunction: string

      The hash function.

    • fingerprint: string

      The fingerprint.

    Returns FingerprintAttribute

  • Initializes a new instance of the fm.icelink.sdp.ice.fingerprintAttribute class.

    Returns FingerprintAttribute

Properties

Private _fingerprint

_fingerprint: string
internal

Private _hashFunction

_hashFunction: string
internal

Methods

getAttributeType

  • getAttributeType(): AttributeType
  • Gets this Attribute's Type.

    Returns AttributeType

Protected getAttributeValue

  • getAttributeValue(): string
  • Gets the value of the attribute.

    Returns string

getFingerprint

  • getFingerprint(): string
  • Gets the fingerprint.

    Returns string

getHashFunction

  • getHashFunction(): string
  • Gets the hash function (i.e. sha-256).

    Returns string

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

  • setAttributeType(value: AttributeType): void
  • Sets this Attribute's Type.

    Parameters

    • value: AttributeType

    Returns void

Private setFingerprint

  • setFingerprint(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

Private setHashFunction

  • setHashFunction(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

toString

  • toString(): string
  • Converts this instance to a string.

    Returns string

Static createAttribute

  • createAttribute(name: string, value: string): Attribute
  • Creates an attribute.

    Parameters

    • name: string

      The name.

    • value: string

      The value.

    Returns Attribute

Static fromAttributeValue

  • fromAttributeValue(value: string): FingerprintAttribute
  • Initializes a new instance of the fm.icelink.sdp.ice.fingerprintAttribute class.

    Parameters

    • value: string

      The attribute as a string.

    Returns FingerprintAttribute

Static getTypeName

  • getTypeName(type: Type): string
  • Gets the name of the attribute type.

    Parameters

    • type: Type

      The attribute type.

    Returns string

Static isMediaLevel

  • isMediaLevel(type: Type): boolean
  • Determines whether the type applies to media streams.

    Parameters

    • type: Type

      The type.

    Returns boolean

Static isSessionLevel

  • isSessionLevel(type: Type): boolean
  • Determines whether the type applies to sessions.

    Parameters

    • type: Type

      The type.

    Returns boolean

Static parse

  • parse(s: string): Attribute
  • Creates an fm.icelink.sdp.connectionData instance from a string.

    Parameters

    • s: string

      The string to parse.

    Returns Attribute