Class DavPrincipal

  • All Implemented Interfaces:
    Principal

    public class DavPrincipal
    extends Object
    implements Principal
    Implementation of Principal for Dav support in Sakai - holds the user name and password
    • Field Detail

      • m_name

        protected String m_name
        The username of the user represented by this Principal.
      • m_password

        protected String m_password
        The authentication credentials for the user represented by this Principal.
    • Constructor Detail

      • DavPrincipal

        public DavPrincipal​(String name,
                            String password)
        Construct with this name and password.
        Parameters:
        name - The username of the user represented by this Principal
        password - Credentials used to authenticate this user
    • Method Detail

      • getPassword

        public String getPassword()
      • hasRole

        public boolean hasRole​(String role)
        Does the user represented by this Principal possess the specified role?
        Parameters:
        role - Role to be tested.
        Returns:
        true if the Principal has the role, false if not.