public class NSURLProtectionSpace extends NSObject implements NSSecureCoding, NSCopying
This class represents a protection space requiring authentication.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSURLProtectionSpace(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static NSURLProtectionSpace |
alloc() |
static NSURLProtectionSpace |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
java.lang.String |
authenticationMethod()
Get the authentication method to be used for this protection space
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
NSArray<? extends NSData> |
distinguishedNames()
Returns an array of acceptable certificate issuing authorities for client certification authentication.
|
void |
encodeWithCoder(NSCoder coder) |
static long |
hash_static() |
java.lang.String |
host()
Get the proxy host if this is a proxy authentication, or the host from the URL.
|
NSURLProtectionSpace |
init() |
NSURLProtectionSpace |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSURLProtectionSpace |
initWithHostPortProtocolRealmAuthenticationMethod(java.lang.String host,
long port,
java.lang.String protocol,
java.lang.String realm,
java.lang.String authenticationMethod)
initWithHost:port:protocol:realm:authenticationMethod:
|
NSURLProtectionSpace |
initWithProxyHostPortTypeRealmAuthenticationMethod(java.lang.String host,
long port,
java.lang.String type,
java.lang.String realm,
java.lang.String authenticationMethod)
initWithProxyHost:port:type:realm:authenticationMethod:
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isProxy()
Determine if this authenticating protection space is a proxy server
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static NSURLProtectionSpace |
new_objc() |
long |
port()
Get the proxy port if this is a proxy authentication, or the port from the URL.
|
java.lang.String |
protocol()
Get the protocol of this protection space, if not a proxy
|
java.lang.String |
proxyType()
Get the type of this protection space, if a proxy
|
java.lang.String |
realm()
Get the authentication realm for which the protection space that
needs authentication
|
boolean |
receivesCredentialSecurely()
Determine if the password for this protection space can be sent securely
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
SecTrustRef |
serverTrust()
Returns a SecTrustRef which represents the state of the servers SSL transaction state
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected NSURLProtectionSpace(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static NSURLProtectionSpace alloc()
public static NSURLProtectionSpace allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSURLProtectionSpace new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public java.lang.String authenticationMethod()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic NSArray<? extends NSData> distinguishedNames()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic java.lang.String host()
public NSURLProtectionSpace init()
public NSURLProtectionSpace initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSURLProtectionSpace initWithHostPortProtocolRealmAuthenticationMethod(java.lang.String host, long port, java.lang.String protocol, java.lang.String realm, java.lang.String authenticationMethod)
Initialize a protection space representing an origin server, or a realm on one
host - The hostname of the serverport - The port for the serverprotocol - The sprotocol for this server - e.g. "http", "ftp", "https"realm - A string indicating a protocol-specific subdivision
of a single host. For http and https, this maps to the realm
string in http authentication challenges. For many other protocols
it is unused.authenticationMethod - The authentication method to use to access this protection space -
valid values include nil (default method), @"digest" and @"form".public NSURLProtectionSpace initWithProxyHostPortTypeRealmAuthenticationMethod(java.lang.String host, long port, java.lang.String type, java.lang.String realm, java.lang.String authenticationMethod)
Initialize a protection space representing a proxy server, or a realm on one
host - The hostname of the proxy serverport - The port for the proxy servertype - The type of proxy - e.g. "http", "ftp", "SOCKS"realm - A string indicating a protocol-specific subdivision
of a single host. For http and https, this maps to the realm
string in http authentication challenges. For many other protocols
it is unused.authenticationMethod - The authentication method to use to access this protection space -
valid values include nil (default method) and @"digest"public boolean isProxy()
public long port()
public java.lang.String protocol()
public java.lang.String proxyType()
public java.lang.String realm()
This is generally only available for http authentication, and may be nil otherwise.
public boolean receivesCredentialSecurely()
public SecTrustRef serverTrust()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding