Class KeyHelper

  • All Implemented Interfaces:

    
    public class KeyHelper
    
                        

    Helper class for generating keys of different types.

    Author:

    Moxie Marlinspike

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static int generateRegistrationId(boolean extendedRange) Generate a registration ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • generateRegistrationId

         static int generateRegistrationId(boolean extendedRange)

        Generate a registration ID. Clients should only do this once, at install time.

        Parameters:
        extendedRange - By default (false), the generated registration ID is sized to require the minimal possible protobuf encoding overhead.
        Returns:

        the generated registration ID.