comparison src/main/java/de/intevation/lada/util/auth/DefaultAuthentication.java @ 711:3ec358698b4d

Code style and documentation.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 22 Jul 2015 16:03:03 +0200
parents 2f42128de67b
children
comparison
equal deleted inserted replaced
710:2ae27dde4823 711:3ec358698b4d
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
1 package de.intevation.lada.util.auth; 8 package de.intevation.lada.util.auth;
2 9
3 import javax.ejb.Stateless; 10 import javax.ejb.Stateless;
4 import javax.ws.rs.core.HttpHeaders; 11 import javax.ws.rs.core.HttpHeaders;
5 12
6 import de.intevation.lada.util.annotation.AuthenticationConfig; 13 import de.intevation.lada.util.annotation.AuthenticationConfig;
7 14
15 /**
16 * Default implementation of the authentication mechanism.
17 *
18 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a>
19 */
8 @Stateless 20 @Stateless
9 @AuthenticationConfig(type=AuthenticationType.NONE) 21 @AuthenticationConfig(type=AuthenticationType.NONE)
10 public class DefaultAuthentication implements Authentication { 22 public class DefaultAuthentication implements Authentication {
11 23
24 /**
25 * For this type of authentication allways true.
26 */
12 @Override 27 @Override
13 public boolean isAuthenticated(HttpHeaders headers) { 28 public boolean isAuthenticated(HttpHeaders headers) {
14 return true; 29 return true;
15 } 30 }
16 31
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)