uk.ac.starlink.auth

## Class AuthConnection

- java.lang.Object
- - uk.ac.starlink.auth.AuthConnection

-     public class AuthConnection
      extends java.lang.Object

  Aggregates a URLConnection and the AuthContext used to make the connection.
  Since:
    7 Jul 2020

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthConnection(java.net.URLConnection connection, AuthContext context)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.net.URLConnection` | `getConnection()` Returns this object's URLConnection.
    `AuthContext` | `getContext()` Returns this objects AuthContext, as used to make the connection.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AuthConnection

          public AuthConnection(java.net.URLConnection connection,
                                AuthContext context)

      Constructor.
      Parameters:
        `connection` - URLConnection, not null
        `context` - auth context used to open connection

  - ### Method Detail

    - #### getConnection

          public java.net.URLConnection getConnection()

      Returns this object's URLConnection.
      Returns:
        connection, not null

    - #### getContext

          public AuthContext getContext()

      Returns this objects AuthContext, as used to make the connection.
      Returns:
        auth context, possibly null