FMPDSS.Builder

Description

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

class Builder

Methods

Method Description

password(_:)

Save DSS user password to variable.
func password(_ password: String) -> Builder

Parameters:

  • password. DSS user password.

certificate(_:) Save DSS certificate to variable.
func certificate(_ certificate: FMPDSS.Certificate?) -> Builder

Parameters:

  • certificate. DSS certificate.

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

Example

Build an instance of the FMPDSS class:

// Build an instance of the FMPDSS.Certificate class. For details see examples for FMPDSS.Certificate.Builder.
let certificate: FMPDSS.Certificate = fmp.certificate
  
// Build an instance of the FMPDSS class with various settings
let dss: FMPDSS = fmp.dss
    .password("password") // By default ""
    .certificate(certificate) // By default nil
    .build()

See also:

FMPWrapper Framework | Classes