Class MetadataAuthorizationHeader

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Undo whatever global state modifications have been made by this HttpAuthenticator.
      void configureConnection​(java.net.HttpURLConnection conn)
      Perform whatever actions are required to the HttpURLConnection after it's been opened (setting custom headers, etc).
      java.lang.String getMetadataKey()  
      void setMetadataKey​(java.lang.String metadataKey)
      The metadata key to retrieve the value for the Authorization header from
      void setup​(java.lang.String target, AdaptrisMessage msg, ResourceTargetMatcher auth)
      Initialize the HttpAuthenticator for a message and return.
      • Methods inherited from class java.lang.Object

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

      • MetadataAuthorizationHeader

        public MetadataAuthorizationHeader()
    • Method Detail

      • configureConnection

        public void configureConnection​(java.net.HttpURLConnection conn)
        Description copied from interface: HttpURLConnectionAuthenticator
        Perform whatever actions are required to the HttpURLConnection after it's been opened (setting custom headers, etc). Not all implementations of this interface will have something to do here.
        Specified by:
        configureConnection in interface HttpURLConnectionAuthenticator
      • close

        public void close()
        Description copied from interface: HttpAuthenticator
        Undo whatever global state modifications have been made by this HttpAuthenticator.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface HttpAuthenticator
      • getMetadataKey

        public java.lang.String getMetadataKey()
      • setMetadataKey

        public void setMetadataKey​(java.lang.String metadataKey)
        The metadata key to retrieve the value for the Authorization header from