Class CSCCredential.Builder

    • 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 new CSCCredential instance built from the current state of this builder.
        Returns:
        a new CSCCredential instance