Package com.qwazr.server
Class HostnameAuthenticationMechanism.MapPrincipalResolver
java.lang.Object
com.qwazr.server.HostnameAuthenticationMechanism.MapPrincipalResolver
- All Implemented Interfaces:
HostnameAuthenticationMechanism.PrincipalResolver
- Enclosing class:
- HostnameAuthenticationMechanism
public static class HostnameAuthenticationMechanism.MapPrincipalResolver extends java.lang.Object implements HostnameAuthenticationMechanism.PrincipalResolver
-
Constructor Summary
Constructors Modifier Constructor Description MapPrincipalResolver()
protected
MapPrincipalResolver(java.util.Map<java.net.InetAddress,java.lang.String> addressMap)
-
Method Summary
-
Constructor Details
-
MapPrincipalResolver
protected MapPrincipalResolver(java.util.Map<java.net.InetAddress,java.lang.String> addressMap) -
MapPrincipalResolver
public MapPrincipalResolver()
-
-
Method Details
-
put
public void put(java.lang.String host, java.lang.String principal) throws java.net.UnknownHostException- Throws:
java.net.UnknownHostException
-
remove
public void remove(java.lang.String host) throws java.net.UnknownHostException- Throws:
java.net.UnknownHostException
-
get
public java.lang.String get(java.net.InetAddress inetAddress)- Specified by:
get
in interfaceHostnameAuthenticationMechanism.PrincipalResolver
-