CSCCredentialBuilder

CSCCredentialBuilder

new CSCCredentialBuilder()

Description:

Methods

withProviderName(providerNamenon-null)

Description:
  • Sets the name of trust service provider being used.

Parameters:
Name Type Description
providerName string

the provider name

Returns:

this Builder instance to add any additional parameters

withCredentialID(credentialIDnon-null)

Description:
  • Sets the TSP credential ID. It is the digital ID stored with the TSP provider that should be used for sealing.

Parameters:
Name Type Description
credentialID string

the credential ID

Returns:

this Builder instance to add any additional parameters

withPin(pinnon-null)

Description:
  • Sets the PIN associated with credential ID.

Parameters:
Name Type Description
pin string

the pin

Returns:

this Builder instance to add any additional parameters

withCSCAuthContext(cscAuthContextnon-null)

Description:
  • Sets the CSC auth context. It encapsulates the service authorization data required to communicate with the TSP and access CSC provider APIs.

Parameters:
Name Type Description
cscAuthContext CSCAuthContext

the CSC auth context

Returns:

this Builder instance to add any additional parameters

build()

Description:
  • Returns a new CSCCredential instance built from the current state of this builder.

Returns:

a new CSCCredential instance