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

    Modifier and Type Method Description
    java.lang.String get​(java.net.InetAddress inetAddress)  
    void put​(java.lang.String host, java.lang.String principal)  
    void remove​(java.lang.String host)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 interface HostnameAuthenticationMechanism.PrincipalResolver