Class ExtremeSwingClientAuthorizer

  • All Implemented Interfaces:
    ClientAuthorizer

    public class ExtremeSwingClientAuthorizer
    extends java.lang.Object
    implements ClientAuthorizer
    Client authorizer implementation that does its very best to discourage users from accepting regitrations.
    Since:
    29 Sep 2011
    Author:
    Mark Taylor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void authorize​(HttpServer.Request request, java.util.Map securityMap)
      Indicates whether an HTTP request representing an otherwise unauthorized connection attempt will be permitted access to sensitive system resources.
      • Methods inherited from class java.lang.Object

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

      • ExtremeSwingClientAuthorizer

        public ExtremeSwingClientAuthorizer​(java.awt.Component parent)
        Constructor.
        Parameters:
        parent - parent component, may be null
    • Method Detail

      • authorize

        public void authorize​(HttpServer.Request request,
                              java.util.Map securityMap)
                       throws SampException
        Description copied from interface: ClientAuthorizer
        Indicates whether an HTTP request representing an otherwise unauthorized connection attempt will be permitted access to sensitive system resources. If so, the method exits normally. If authorization is denied, a SampException is thrown, with a message that indicates the reason for denial.
        Specified by:
        authorize in interface ClientAuthorizer
        Parameters:
        request - incoming HTTP request
        securityMap - credential items supplied explicitly by aspiring client to support its registration request
        Throws:
        SampException - with reason if authorization is denied