Jwt

public class Jwt : SdkObject

IronCore JWT.

Must be either ES256 or RS256 and have a payload similar to JwtClaims, but could be generated from an external source.

  • Constructs a Jwt from the provided String.

    Fails if the provided String is not a valid JWT, or if the JWT does not have a valid IronCore payload.

    Declaration

    Swift

    public convenience init?(_ jwt: String)
  • jwt

    Raw JWT string

    Declaration

    Swift

    public lazy var jwt: String { get set }
  • Algorithm used by the JWT

    Declaration

    Swift

    public lazy var algorithm: String { get set }
  • Payload of the JWT

    Declaration

    Swift

    public lazy var claims: JwtClaims { get set }