Class UserId


  • public final class UserId
    extends java.lang.Object
    An entity to pass describe one or multiple user IDs via GetSocial or custom identity.
    • Constructor Summary

      Constructors 
      Constructor Description
      UserId()  
    • Constructor Detail

      • UserId

        public UserId()
    • Method Detail

      • create

        public static UserId create​(java.lang.String userId)
        Create a single GetSocial user identifier.
        Parameters:
        userId - GetSocial user ID.
        Returns:
        new identifier.
      • createWithProvider

        public static UserId createWithProvider​(java.lang.String providerId,
                                                java.lang.String identityId)
        Create a single identity user identifier for giver provider ID.
        Parameters:
        providerId - custom identity provider ID.
        identityId - identity user ID.
        Returns:
        new identifier.
      • createForApp

        public static UserId createForApp()
        Create a single GetSocial user identifier for the app.
        Returns:
        new identifier.
      • currentUser

        public static UserId currentUser()
        Returns:
        UserId for a current user.
      • toString

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