1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.anyflow.lannister.plugin;
18
19 public class DefaultAuthenticator implements Authenticator {
20 private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DefaultAuthenticator.class);
21
22 @Override
23 public Plugin clone() {
24 return new DefaultAuthenticator();
25 }
26
27 @Override
28 public boolean isValid(String clientId) {
29 if (logger.isDebugEnabled()) {
30 logger.debug("DefaultAuthenticator.isValid() called [clientId={}]", clientId);
31 }
32
33 return true;
34 }
35
36 @Override
37 public boolean isValid(String clientId, String userName, String password) {
38 if (logger.isDebugEnabled()) {
39 logger.debug("DefaultAuthenticator.isValid() called [clientId={}, userName={}, password={}]", clientId,
40 userName, password);
41 }
42 return true;
43 }
44 }