AuthenticationInfo

public protocol AuthenticationInfo

Protocol encapsulating properties and methods related to credentials used to authenticate to the backend.

  • Authentication type.

    Declaration

    Swift

    var type: String { get }
  • Indicates whether or not the authentication information is valid, i.e. well-formed and has not expired.

    Declaration

    Swift

    func isValid() -> Bool

    Return Value

    true if the authentication information is valid.

  • Returns the authentication information serialized to a String.

    Declaration

    Swift

    func toString() -> String

    Return Value

    String representation of the authentication information.

  • Returns the username associated with this authentication information.

    Declaration

    Swift

    func getUsername() -> String

    Return Value

    Username.