Class CSCCredential.Builder
Builds an CSCCredential instance.
Inheritance
Namespace: Adobe.PDFServicesSDK.pdfjobs.parameters.electronicseal
Assembly: Adobe.PDFServicesSDK.Doc.dll
Syntax
public class Builder
Constructors
Builder()
Constructs a Builder
instance.
Declaration
protected Builder()
Methods
Build()
Returns a new CSCCredential instance built from the current state of this builder.
Declaration
public CSCCredential Build()
Returns
Type | Description |
---|---|
CSCCredential | A new CSCCredential instance |
WithCredentialID(String)
Sets the TSP credential ID. It is the digital ID stored with the TSP provider that should be used for sealing.
Declaration
public CSCCredential.Builder WithCredentialID(string credentialID)
Parameters
Type | Name | Description |
---|---|---|
System. |
credentialID | the credential ID |
Returns
Type | Description |
---|---|
CSCCredential. |
this Builder instance to add any additional parameters |
WithCSCAuthContext(CSCAuthContext)
Sets the CSC auth context. It encapsulates the service authorization data required to communicate with the TSP and access CSC provider APIs.
Declaration
public CSCCredential.Builder WithCSCAuthContext(CSCAuthContext cscAuthContext)
Parameters
Type | Name | Description |
---|---|---|
CSCAuth |
cscAuthContext | the CSC auth context |
Returns
Type | Description |
---|---|
CSCCredential. |
this Builder instance to add any additional parameters |
WithPin(String)
Sets the PIN associated with credential ID.
Declaration
public CSCCredential.Builder WithPin(string pin)
Parameters
Type | Name | Description |
---|---|---|
System. |
pin | the pin |
Returns
Type | Description |
---|---|
CSCCredential. |
this Builder instance to add any additional parameters |
WithProviderName(String)
Sets the name of trust service provider being used.
Declaration
public CSCCredential.Builder WithProviderName(string providerName)
Parameters
Type | Name | Description |
---|---|---|
System. |
providerName | the provider name |
Returns
Type | Description |
---|---|
CSCCredential. |
this Builder instance to add any additional parameters |