Class UserDatabaseRealm.UserDatabasePrincipal

    • Constructor Detail

      • UserDatabasePrincipal

        public UserDatabasePrincipal​(User user,
                                     UserDatabase database)
    • Method Detail

      • hasRole

        public boolean hasRole​(java.lang.String role)
        Description copied from class: GenericPrincipal
        Does the user represented by this Principal possess the specified role?
        Overrides:
        hasRole in class GenericPrincipal
        Parameters:
        role - Role to be tested
        Returns:
        true if this Principal has been assigned the given role, otherwise false