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, org.eclipse.jetty.util.security.Credential credential)  
      UserInfo​(java.lang.String userName, org.eclipse.jetty.util.security.Credential credential, java.util.List<java.lang.String> roleNames)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkCredential​(java.lang.Object suppliedCredential)  
      java.util.List<java.lang.String> doFetchRoles()
      Should be overridden by subclasses to obtain role info
      void fetchRoles()  
      protected org.eclipse.jetty.util.security.Credential getCredential()  
      java.util.List<java.lang.String> getRoleNames()  
      java.lang.String getUserName()  
      • Methods inherited from class java.lang.Object

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

      • _roleNames

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

        protected boolean _rolesLoaded
    • Constructor Detail

      • UserInfo

        public UserInfo​(java.lang.String userName,
                        org.eclipse.jetty.util.security.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,
                        org.eclipse.jetty.util.security.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 org.eclipse.jetty.util.security.Credential getCredential()