IdTokenHeader

class IdTokenHeader : Equatable

Represents the header component of the id token obtained via the AppAuth framework.

  • is a hint indicating which key was used to secure the json web signature

    Declaration

    Swift

    let kidProperty: String
  • identifies the cryptographic algorithm used to secure the json web signature

    Declaration

    Swift

    let algProperty: String
  • Initialises IdTokenHeader object

    Declaration

    Swift

    init(kid: String = "", alg: String = "")

    Parameters

    kid

    key identifier

    alg

    algorithm

  • Implementation of the Equatable protocol, to be able to compare [IdTokenHeader] objects.

    Declaration

    Swift

    static func == (lhs: IdTokenHeader, rhs: IdTokenHeader) -> Bool

    Parameters

    lhs

    first object

    rhs

    second object

    Return Value

    Boolean value, true if the objects are equal, false otherwise.