FMPDSS.Certificate.Builder

Description

The FMPDSS.Certificate.Builder class is a builder for the FMPDSS.Certificate class.

class Builder

Methods

Method Description

id(_:)

Save certificate identifier to variable.
func id(_ id: String) -> Builder

Parameters:

  • id. Certificate identifier.

pin(_:) Save certificate PIN to variable.
func pin(_ pin: String) -> Builder

Parameters:

  • pin. Certificate PIN.

build() Build an instance of the FMPDSS.Certificate class. It returns the object of the FMPDSS.Certificate type.
func build() -> FMPDSS.Certificate

Example

Build an instance of the FMPDSS.Certificate class:

// Build an instance of the FMPDSS.Certificate class with various settings
let certificate: FMPDSS.Certificate = fmp.certificate
    .id("id") // By default ""
    .pin("pin") // By default nil
    .build()

See also:

FMPWrapper Framework | Classes