com.supermap.services.rest

Class HttpBasicAuthorizer

  • java.lang.Object
    • com.supermap.services.rest.HttpBasicAuthorizer


  • public class HttpBasicAuthorizer
    extends java.lang.Object
    

    ${services_rest_HttpBasicAuthorizer_Title}

    ${services_rest_HttpBasicAuthorizer_Description}

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected void challenge(Response response, boolean stale)
      ${services_rest_HttpBasicAuthorizer_method_challenge_Title}
      protected java.lang.String getCorrectPassward(java.lang.String identifier)
      ${services_rest_HttpBasicAuthorizer_method_getCorrectPassward_Title}
      int verify(Request request, Response response)
      Verifies the authentication information provided by the client.
      • Methods inherited from class java.lang.Object

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

      • HttpBasicAuthorizer

        public HttpBasicAuthorizer()
        
    • Method Detail

      • challenge

        protected void challenge(Response response,
                     boolean stale)
        

        ${services_rest_HttpBasicAuthorizer_method_challenge_Title}

        ${services_rest_HttpBasicAuthorizer_method_challenge_Description}

        Parameters:
        response - ${services_rest_HttpBasicAuthorizer_method_challenge_param_response}
        stale - ${services_rest_HttpBasicAuthorizer_method_challenge_param_stale}
      • verify

        public int verify(Request request,
                 Response response)
        

        Verifies the authentication information provided by the client.

        Parameters:
        request - request object content.
        response - Response object content.
        Returns:
        The authentication result in RESULT_ * constant, sees org.restlet.security.Verifier for Restlet.
      • getCorrectPassward

        protected java.lang.String getCorrectPassward(java.lang.String identifier)
        

        ${services_rest_HttpBasicAuthorizer_method_getCorrectPassward_Title}

        ${services_rest_HttpBasicAuthorizer_method_getCorrectPassward_Description}

        Parameters:
        identifier - ${services_rest_HttpBasicAuthorizer_method_getCorrectPassward_param_identifier}
        Returns:
        ${services_rest_HttpBasicAuthorizer_method_getCorrectPassward_return}