Class CSCCredential.Builder
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.electronicseal.CSCCredential.Builder
-
- Enclosing class:
- CSCCredential
public static class CSCCredential.Builder extends Object
Builds aCSCCredentialinstance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CSCCredentialbuild()Returns a newCSCCredentialinstance built from the current state of this builder.CSCCredential.BuilderwithCredentialID(String credentialID)Sets the TSP credential ID.CSCCredential.BuilderwithCSCAuthContext(CSCAuthContext cscAuthContext)Sets the CSC auth context.CSCCredential.BuilderwithPin(String pin)Sets the PIN associated with credential ID.CSCCredential.BuilderwithProviderName(String providerName)Sets the name of trust service provider being used.
-
-
-
Method Detail
-
withProviderName
public CSCCredential.Builder withProviderName(String providerName)
Sets the name of trust service provider being used.- Parameters:
providerName- the provider name- Returns:
- this Builder instance to add any additional parameters
-
withCredentialID
public CSCCredential.Builder withCredentialID(String credentialID)
Sets the TSP credential ID. It is the digital ID stored with the TSP provider that should be used for sealing.- Parameters:
credentialID- the credential ID- Returns:
- this Builder instance to add any additional parameters
-
withPin
public CSCCredential.Builder withPin(String pin)
Sets the PIN associated with credential ID.- Parameters:
pin- the pin- Returns:
- this Builder instance to add any additional parameters
-
withCSCAuthContext
public CSCCredential.Builder withCSCAuthContext(CSCAuthContext cscAuthContext)
Sets the CSC auth context. It encapsulates the service authorization data required to communicate with the TSP and access CSC provider APIs.- Parameters:
cscAuthContext- the CSC auth context- Returns:
- this Builder instance to add any additional parameters
-
build
public CSCCredential build()
Returns a newCSCCredentialinstance built from the current state of this builder.- Returns:
- a new
CSCCredentialinstance
-
-