Class ClientTransIdGenerator

java.lang.Object
com.verisign.epp.pool.ClientTransIdGenerator
All Implemented Interfaces:
EPPClientTransIdGenerator

public class ClientTransIdGenerator extends Object implements EPPClientTransIdGenerator
Client transaction identifier generator that is used to generate a client transaction identifier when creating or terminating sessions in the session pool. The format of the client transaction identifier is <prefix>'-'<epoch time>'-'<random>, where the default <prefix> is "SAMPLE".
  • Constructor Details

    • ClientTransIdGenerator

      public ClientTransIdGenerator()
      Default constructor.
    • ClientTransIdGenerator

      public ClientTransIdGenerator(String aPrefix)
      Constructor that takes the client transaction identifier prefix to use. The sample format will be <prefix>'-'<epoch time>'-'<random>.
      Parameters:
      aPrefix - Prefix to use for the client transaction identifier
  • Method Details

    • genClientTransId

      public String genClientTransId()
      Generates a sample client transaction identifier with the format <prefix>'-'<epoch time>'-'<random> that is clipped to the maximum 64 characters if needed.
      Specified by:
      genClientTransId in interface EPPClientTransIdGenerator
      Returns:
      Generated client transaction identifier