Package uk.ac.starlink.auth
Class AuthConnection
java.lang.Object
uk.ac.starlink.auth.AuthConnection
Aggregates a URLConnection and the AuthContext used to make the connection.
- Since:
- 7 Jul 2020
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this object's URLConnection.Returns this objects AuthContext, as used to make the connection.
-
Constructor Details
-
AuthConnection
Constructor.- Parameters:
connection
- URLConnection, not nullcontext
- auth context used to open connection
-
-
Method Details
-
getConnection
Returns this object's URLConnection.- Returns:
- connection, not null
-
getContext
Returns this objects AuthContext, as used to make the connection.- Returns:
- auth context, possibly null
-