Up
Authors
- Generated by root
-
- Declared in:
- Foundation/NSURLProtectionSpace.h
- Conforms to:
- NSCopying
Availability: MacOS-X 10.2.0, Base 1.13.0
Class to encapsulate a protection space... where authentication is required.
Method summary
- (
NSString*)
authenticationMethod;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the authentication method used for this protection space.
- (
NSString*)
host;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the host (or proxy host) set in the receiver.
- (id)
initWithHost: (
NSString*)host
port: (int)port
protocol: (
NSString*)protocol
realm: (
NSString*)realm
authenticationMethod: (
NSString*)authenticationMethod;
Availability: MacOS-X 10.2.0, Base 1.13.0
Initialises the receiver with host, port, and protocol identifying the protection space. For some protocols the realm identifies a space within the host, for others it may be nil
.
- (id)
initWithProxyHost: (
NSString*)host
port: (int)port
type: (
NSString*)type
realm: (
NSString*)realm
authenticationMethod: (
NSString*)authenticationMethod;
Availability: MacOS-X 10.2.0, Base 1.13.0
- (BOOL)
isProxy;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns a flag to indicate whether this protection space is on a proxy server or not.
- (int)
port;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the port set for this receiver or zero if none was set.
- (
NSString*)
protocol;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the protocol of the receiver or nil
if it is a proxy.
- (
NSString*)
proxyType;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the proxy type set for the receiver or nil
if it's not a proxy.
- (
NSString*)
realm;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the realm (or nil
) which was set in the receiver upon initialisation.
- (BOOL)
receivesCredentialSecurely;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns a flag to indicate whether the password for this protection space will be sent over a secure mechanism.
Up