Class MigrationMapping


  • public final class MigrationMapping
    extends java.lang.Object
    A simple record that contains mapping information about the old id of a user.
    Author:
    Alex Kalderimis
    • Constructor Summary

      Constructors 
      Constructor Description
      MigrationMapping​(java.lang.String openidId, java.lang.String sub)
      Construct a mapping for Google OpenID migration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNewId()  
      java.lang.String getOldId()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • MigrationMapping

        public MigrationMapping​(java.lang.String openidId,
                                java.lang.String sub)
        Construct a mapping for Google OpenID migration.
        Parameters:
        openidId - The older open-id ID
        sub - the newer OpenID Connect (ie. OAuth 2) id.
    • Method Detail

      • getNewId

        public java.lang.String getNewId()
        Returns:
        the sub
      • getOldId

        public java.lang.String getOldId()
        Returns:
        the openid_id
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object