public class ProtectionSpace
extends java.lang.Object
Constructor and Description |
---|
ProtectionSpace(java.lang.String proto,
java.lang.String authority,
java.lang.String realm)
Constructs a ProtectionSpace using URL parts.
|
ProtectionSpace(java.net.URL url,
java.lang.String realm)
Constructs a ProtectionSpace using a URL.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
public ProtectionSpace(java.lang.String proto, java.lang.String authority, java.lang.String realm)
proto
- protocol part of URL, for instance "http"authority
- authority part of URLrealm
- challenge realm, or nullpublic ProtectionSpace(java.net.URL url, java.lang.String realm)
url
- URLrealm
- challenge realm, or null