Interface TokenFactory


public interface TokenFactory
Creates a Token object that can then be stored into the CTS.

None of the methods on this interface cause any change to what is currently stored in the CTS.

  • Method Summary

    Modifier and Type
    Method
    Description
    create(String tokenId, TokenType type)
    Create a Token object that can then be stored into the CTS.
    create(Token token, ETag etag)
    Create a Token object that can then be stored into the CTS.
  • Method Details

    • create

      Token create(String tokenId, TokenType type)
      Create a Token object that can then be stored into the CTS.
      Parameters:
      tokenId - The ID of the token.
      type - The type of the token.
      Returns:
      A new Token instance.
    • create

      Token create(Token token, ETag etag)
      Create a Token object that can then be stored into the CTS.
      Parameters:
      token - The token object to copy.
      etag - The etag for the new token.
      Returns:
      A new Token instance.