Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/auth/Authentication.java @ 292:49d0becf3c65
New method to get user name in authentication module.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 14 Aug 2013 16:10:05 +0200 |
parents | d8a3d188046f |
children | 567ce7697fc7 |
line wrap: on
line source
package de.intevation.lada.auth; import javax.ws.rs.core.HttpHeaders; /** * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> */ public interface Authentication { public boolean isAuthorizedUser(HttpHeaders headers) throws AuthenticationException; public AuthenticationResponse authorizedGroups(HttpHeaders headers) throws AuthenticationException; public boolean hasAccess(HttpHeaders headers, String probeId) throws AuthenticationException; public String getUserName(HttpHeaders headers) throws AuthenticationException; }