From: Niels Erik G. Nielsen Date: Tue, 30 Apr 2013 15:45:25 +0000 (-0400) Subject: Tweaks IP authentication X-Git-Tag: v0.0.7~135 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b9751d81b16e9286a7ad40d086f3aab516ac6dd4;p=mkjsf-moved-to-github.git Tweaks IP authentication --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/sp/auth/ServiceProxyUser.java b/src/main/java/com/indexdata/mkjsf/pazpar2/sp/auth/ServiceProxyUser.java index b8a68af..43971df 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/sp/auth/ServiceProxyUser.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/sp/auth/ServiceProxyUser.java @@ -20,14 +20,12 @@ public class ServiceProxyUser implements AuthenticationEntity { private Map actualProperties = new HashMap(); private static Logger logger = Logger.getLogger(ServiceProxyUser.class); private boolean authenticated = false; + private boolean ipAuthenticated = false; public ServiceProxyUser() { logger.debug("ServiceProxyUser instantiated: " + Utils.objectId(this)); } - public void setAuthenticationMethod() { - } - public String getName() { return actualProperties.get("name"); } @@ -56,10 +54,18 @@ public class ServiceProxyUser implements AuthenticationEntity { this.authenticated = authenticated; } + public void isIpAuthenticated (boolean authenticated) { + this.ipAuthenticated = authenticated; + } + public boolean isAuthenticated() { return authenticated; } + public boolean isIpAuthenticated () { + return ipAuthenticated; + } + @Override public String getProperty(String key) { @@ -79,6 +85,7 @@ public class ServiceProxyUser implements AuthenticationEntity { public void clear() { actualProperties = new HashMap(); authenticated = false; + ipAuthenticated = false; }