Class UserInfo

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.String> _roleNames  
      protected boolean _rolesLoaded  
    • Constructor Summary

      Constructors 
      Constructor Description
      UserInfo​(java.lang.String userName, Credential credential)  
      UserInfo​(java.lang.String userName, Credential credential, java.util.List<java.lang.String> roleNames)  
    • Field Detail

      • _roleNames

        protected java.util.List<java.lang.String> _roleNames
      • _rolesLoaded

        protected boolean _rolesLoaded
    • Constructor Detail

      • UserInfo

        public UserInfo​(java.lang.String userName,
                        Credential credential,
                        java.util.List<java.lang.String> roleNames)
        Parameters:
        userName - the user name
        credential - the credential
        roleNames - a List of role name
      • UserInfo

        public UserInfo​(java.lang.String userName,
                        Credential credential)
        Parameters:
        userName - the user name
        credential - the credential
    • Method Detail

      • doFetchRoles

        public java.util.List<java.lang.String> doFetchRoles()
                                                      throws java.lang.Exception
        Should be overridden by subclasses to obtain role info
        Returns:
        List of role associated to the user
        Throws:
        java.lang.Exception - if the roles cannot be retrieved
      • fetchRoles

        public void fetchRoles()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getUserName

        public java.lang.String getUserName()
      • getRoleNames

        public java.util.List<java.lang.String> getRoleNames()
      • checkCredential

        public boolean checkCredential​(java.lang.Object suppliedCredential)
      • getCredential

        protected Credential getCredential()