From b9751d81b16e9286a7ad40d086f3aab516ac6dd4 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 30 Apr 2013 11:45:25 -0400 Subject: [PATCH] Tweaks IP authentication --- .../indexdata/mkjsf/pazpar2/sp/auth/ServiceProxyUser.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; } -- 1.7.10.4