bjoern@2956: package de.intevation.flys.client.server.auth; bjoern@2956: bjoern@2978: import java.util.List; bjoern@2978: bjoern@2979: /** bjoern@2979: * User representation after a succesfull login bjoern@2979: */ bjoern@2956: public interface User { bjoern@2956: bjoern@2979: /** bjoern@2979: * Returns the username as String bjoern@2979: */ bjoern@2956: public String getName(); bjoern@2956: bjoern@2979: /** bjoern@2979: * Returns the password of the user as String bjoern@2979: */ bjoern@2956: public String getPassword(); bjoern@2956: bjoern@2979: /** bjoern@2979: * Returns True if the authentication for the user bjoern@2979: * has expired. bjoern@2979: */ sascha@2959: public boolean hasExpired(); bjoern@2978: bjoern@2979: /** bjoern@2979: * Returns a list of roles corresponsing the the user bjoern@2979: */ bjoern@2978: public List getRoles(); bjoern@3485: bjoern@3485: bjoern@3485: /** bjoern@3485: * Returns true if the user is allowed access the feature bjoern@3485: */ bjoern@3485: public boolean canUseFeature(String feature); bjoern@3504: bjoern@3504: /** bjoern@3504: * Returns the users account name bjoern@3504: */ bjoern@3504: public String getAccount(); bjoern@2956: } bjoern@2956: // vim:set ts=4 sw=4 si et fenc=utf8 tw=80: