Package uk.ac.starlink.auth
Class ProtectionSpace
java.lang.Object
uk.ac.starlink.auth.ProtectionSpace
Protection Space is a concept defined in RFC7235,
aggregating the canonical root URI and an optional realm.
It defines the domain within which the same authentication credentials
can be applied.
- Since:
- 8 Jun 2020
- Author:
- Mark Taylor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProtectionSpace
(String proto, String authority, String realm) Constructs a ProtectionSpace using URL parts.ProtectionSpace
(URL url, String realm) Constructs a ProtectionSpace using a URL. -
Method Summary
-
Constructor Details
-
ProtectionSpace
Constructs a ProtectionSpace using URL parts.- Parameters:
proto
- protocol part of URL, for instance "http"authority
- authority part of URLrealm
- challenge realm, or null
-
ProtectionSpace
Constructs a ProtectionSpace using a URL.- Parameters:
url
- URLrealm
- challenge realm, or null
-
-
Method Details