Class IdentityStatementBuilder

Hierarchy

Constructors

Properties

schema: undefined | CredentialSchemaSubject
statements: AtomicStatementV2<"firstName" | "lastName" | "sex" | "dob" | "countryOfResidence" | "nationality" | "idDocType" | "idDocNo" | "idDocIssuer" | "idDocIssuedAt" | "idDocExpiresAt" | "nationalIdNo" | "taxIdNo" | "lei" | "legalName" | "legalCountry" | "businessNumber" | "registrationAuth">[]

Methods

  • Add to the statement, that the given attribute should be one of the values in the given set.

    Returns

    the updated builder

    Parameters

    • attribute: "firstName" | "lastName" | "sex" | "dob" | "countryOfResidence" | "nationality" | "idDocType" | "idDocNo" | "idDocIssuer" | "idDocIssuedAt" | "idDocExpiresAt" | "nationalIdNo" | "taxIdNo" | "lei" | "legalName" | "legalCountry" | "businessNumber" | "registrationAuth"

      the attribute that should be checked

    • set: StatementAttributeType[]

    Returns IdentityStatementBuilder

  • Add to the statement, that the given attribute should not be one of the values in the given set.

    Returns

    the updated builder

    Parameters

    • attribute: "firstName" | "lastName" | "sex" | "dob" | "countryOfResidence" | "nationality" | "idDocType" | "idDocNo" | "idDocIssuer" | "idDocIssuedAt" | "idDocExpiresAt" | "nationalIdNo" | "taxIdNo" | "lei" | "legalName" | "legalCountry" | "businessNumber" | "registrationAuth"

      the attribute that should be checked

    • set: StatementAttributeType[]

    Returns IdentityStatementBuilder

  • Add to the statement, that the given attribute should be in the given range, i.e. that lower <= attribute < upper.

    Returns

    the updated builder

    Parameters

    • attribute: "firstName" | "lastName" | "sex" | "dob" | "countryOfResidence" | "nationality" | "idDocType" | "idDocNo" | "idDocIssuer" | "idDocIssuedAt" | "idDocExpiresAt" | "nationalIdNo" | "taxIdNo" | "lei" | "legalName" | "legalCountry" | "businessNumber" | "registrationAuth"

      the attribute that should be checked

    • lower: StatementAttributeType
    • upper: StatementAttributeType

    Returns IdentityStatementBuilder

  • Outputs the built statement.

    Returns AtomicStatementV2<"firstName" | "lastName" | "sex" | "dob" | "countryOfResidence" | "nationality" | "idDocType" | "idDocNo" | "idDocIssuer" | "idDocIssuedAt" | "idDocExpiresAt" | "nationalIdNo" | "taxIdNo" | "lei" | "legalName" | "legalCountry" | "businessNumber" | "registrationAuth">[]

  • Add to the statement, that the given attribute should be revealed. The proof will contain the value.

    Returns

    the updated builder

    Parameters

    • attribute: "firstName" | "lastName" | "sex" | "dob" | "countryOfResidence" | "nationality" | "idDocType" | "idDocNo" | "idDocIssuer" | "idDocIssuedAt" | "idDocExpiresAt" | "nationalIdNo" | "taxIdNo" | "lei" | "legalName" | "legalCountry" | "businessNumber" | "registrationAuth"

      the attribute that should be revealed

    Returns IdentityStatementBuilder

Generated using TypeDoc