Class UserInfo

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class UserInfo
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    UserInfo holds the information about the user needed to implement the user.Info interface.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UserInfo.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      UserInfo()  
      UserInfo​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> extra, java.util.List<java.lang.String> groups, java.lang.String uid, java.lang.String username)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static UserInfo.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getExtra()
      Any additional information provided by the authenticator.
      java.util.List<java.lang.String> getGroups()
      The names of groups this user is a part of.
      java.lang.String getUid()
      A unique value that identifies this user across time.
      java.lang.String getUsername()
      The name that uniquely identifies this user among all active users.
      int hashCode()  
      void setExtra​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> extra)
      Any additional information provided by the authenticator.
      void setGroups​(java.util.List<java.lang.String> groups)
      The names of groups this user is a part of.
      void setUid​(java.lang.String uid)
      A unique value that identifies this user across time.
      void setUsername​(java.lang.String username)
      The name that uniquely identifies this user among all active users.
      UserInfo.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • UserInfo

        public UserInfo​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> extra,
                        java.util.List<java.lang.String> groups,
                        java.lang.String uid,
                        java.lang.String username)
      • UserInfo

        public UserInfo()
    • Method Detail

      • getExtra

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getExtra()
        Any additional information provided by the authenticator.
      • getGroups

        public java.util.List<java.lang.String> getGroups()
        The names of groups this user is a part of.
      • getUid

        public java.lang.String getUid()
        A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.
      • getUsername

        public java.lang.String getUsername()
        The name that uniquely identifies this user among all active users.
      • setExtra

        public void setExtra​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> extra)
        Any additional information provided by the authenticator.
      • setGroups

        public void setGroups​(java.util.List<java.lang.String> groups)
        The names of groups this user is a part of.
      • setUid

        public void setUid​(java.lang.String uid)
        A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.
      • setUsername

        public void setUsername​(java.lang.String username)
        The name that uniquely identifies this user among all active users.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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