annotate src/main/java/de/mpiwg/itgroup/annotationManager/tests/DummyLoginModule.java @ 23:a3e324009990

now Mavenified! removed tiny-mce javascript from html frontend. still needs TripleStoreManager project in Eclipse. jsontoken 1.1 has to be built manually.
author casties
date Tue, 03 Apr 2012 13:05:05 +0200
parents src/de/mpiwg/itgroup/annotationManager/tests/DummyLoginModule.java@0be9d53a6967
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
1 package de.mpiwg.itgroup.annotationManager.tests;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
2
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
3 import java.util.Map;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
4
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
5 import javax.security.auth.Subject;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
6 import javax.security.auth.callback.CallbackHandler;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
7 import javax.security.auth.login.LoginException;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
8 import javax.security.auth.spi.LoginModule;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
9
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
10 public class DummyLoginModule implements LoginModule {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
11
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
12 private CallbackHandler cb;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
13
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
14 @Override
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
15 public boolean abort() throws LoginException {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
16 // TODO Auto-generated method stub
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
17 return false;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
18 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
19
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
20 @Override
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
21 public boolean commit() throws LoginException {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
22 // TODO Auto-generated method stub
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
23 return true;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
24 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
25
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
26 @Override
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
27 public void initialize(Subject arg0, CallbackHandler arg1,
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
28 Map<String, ?> arg2, Map<String, ?> arg3) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
29 // TODO Auto-generated method stub
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
30 this.cb=arg1;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
31
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
32
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
33 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
34
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
35 @Override
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
36 public boolean login() throws LoginException {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
37 // TODO Auto-generated method stub
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
38 return true;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
39 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
40
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
41 @Override
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
42 public boolean logout() throws LoginException {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
43 // TODO Auto-generated method stub
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
44 return true;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
45 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
46
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
47 }