class Yoti::Anchor

Encapsulates attribute anchor

Attributes

origin_server_certs[R]

Certificate chain generated when this Anchor was created (attribute value was sourced or verified). Securely encodes the Anchor type and value.

@return [Array<OpenSSL::X509::Certificate>]

signed_time_stamp[R]

Timestamp applied at the time of Anchor creation.

@return [Yoti::SignedTimeStamp]

sub_type[R]

SubType is an indicator of any specific processing method, or subcategory, pertaining to an artifact.

Examples:

  • For a passport, this would be either “NFC” or “OCR”.

  • For a national ID, this could be “AADHAAR”.

@return [String]

type[R]

Gets the type of the given anchor.

@return [String]

value[R]

Gets the value of the given anchor.

Among possible options for SOURCE are “USER_PROVIDED”, “PASSPORT”, “DRIVING_LICENCE”, “NATIONAL_ID” and “PASSCARD”.

Among possible options for VERIFIER are “YOTI_ADMIN”, “YOTI_IDENTITY”, “YOTI_OTP”, “PASSPORT_NFC_SIGNATURE”, “ISSUING_AUTHORITY” and “ISSUING_AUTHORITY_PKI”.

@return [String]

Public Class Methods

new(value, sub_type, signed_time_stamp, origin_server_certs, type = nil) click to toggle source

@param [String] value @param [String] sub_type @param [Yoti::SignedTimeStamp] signed_time_stamp @param [Array<OpenSSL::X509::Certificate>] origin_server_certs @param [String] type

# File lib/yoti/data_type/anchor.rb, line 59
def initialize(value, sub_type, signed_time_stamp, origin_server_certs, type = nil)
  @value = value
  @sub_type = sub_type
  @signed_time_stamp = signed_time_stamp
  @origin_server_certs = origin_server_certs
  @type = type
end