Class DummyHttpAuthenticator

  • All Implemented Interfaces:
    Authenticator

    public class DummyHttpAuthenticator
    extends java.lang.Object
    implements Authenticator
    Dummy implementation of an HTTP authenticator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthorizationHeaderValue​(com.smartgridready.ns.v0.DeviceFrame deviceDescription, com.smartgridready.driver.api.http.GenHttpClientFactory httpClientFactory)
      Retrieves the value of the authorization header of HTTP requests.
      • Methods inherited from class java.lang.Object

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

      • DummyHttpAuthenticator

        public DummyHttpAuthenticator()
        Constructs a new instance.
    • Method Detail

      • getAuthorizationHeaderValue

        public java.lang.String getAuthorizationHeaderValue​(com.smartgridready.ns.v0.DeviceFrame deviceDescription,
                                                            com.smartgridready.driver.api.http.GenHttpClientFactory httpClientFactory)
        Description copied from interface: Authenticator
        Retrieves the value of the authorization header of HTTP requests.
        Specified by:
        getAuthorizationHeaderValue in interface Authenticator
        Parameters:
        deviceDescription - the SGr device specification
        httpClientFactory - the SGr HTTP client factory
        Returns:
        a string