version 1.3, 2012/06/16 15:48:44
|
version 1.4, 2013/10/18 13:42:11
|
Line 6
|
Line 6
|
package org.w3c.jigsaw.acl; |
package org.w3c.jigsaw.acl; |
|
|
import java.net.InetAddress; |
import java.net.InetAddress; |
import java.util.Hashtable; |
import java.util.HashMap; |
|
import java.util.Map; |
import org.w3c.jigsaw.auth.AuthUser; |
import org.w3c.jigsaw.auth.AuthUser; |
import org.w3c.jigsaw.auth.IPMatcher; |
import org.w3c.jigsaw.auth.IPMatcher; |
|
|
Line 19 public class AuthUserPrincipal implement
|
Line 20 public class AuthUserPrincipal implement
|
protected String name = null; |
protected String name = null; |
protected String password = null; |
protected String password = null; |
protected String realm = null; |
protected String realm = null; |
protected Hashtable values = null; |
protected Map<String,Object> values = null; |
protected IPMatcher ipmatcher = null; |
protected IPMatcher ipmatcher = null; |
|
|
public boolean equals(Object another) { |
public boolean equals(Object another) { |
Line 70 public class AuthUserPrincipal implement
|
Line 71 public class AuthUserPrincipal implement
|
this.password = user.getPassword(); |
this.password = user.getPassword(); |
this.realm = realm; |
this.realm = realm; |
this.ipmatcher = new IPMatcher(); |
this.ipmatcher = new IPMatcher(); |
this.values = new Hashtable(); |
this.values = new HashMap<String,Object>(); |
|
|
short ips[][] = user.getIPTemplates(); |
short ips[][] = user.getIPTemplates(); |
if (ips != null) { |
if (ips != null) { |