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