APIKeyAuthenticationObserver
open class APIKeyAuthenticationObserver
extension APIKeyAuthenticationObserver: SAPURLSessionObserving
Observer which performs necessary steps for API Key authentication
-
Initializer for APIKeyAuthenticationObserver
Declaration
Swift
public init(apikeyCredentialDiscovery: APIKeyCredentialDiscovery = DefaultAPIKeyCredentialDiscovery(), isAPIKeyAccessOnly: Bool = false)
Parameters
apikeyCredentialDiscovery
Discovery implementation that implements the
APIKeyCredentialDiscovery
protocol. The default value is a default implementation.isAPIKeyAccessOnly
A value which denotes whether security configuration associated with this app is
API Key Access only
. -
Undocumented
Declaration
Swift
open func isChallenge(dataTask: SAPURLSessionTask, response: URLResponse) -> Bool
-
Declaration
Swift
public func sapURLSession(_ session: SAPURLSession, task: SAPURLSessionTask, willSend request: URLRequest, completionHandler: @escaping (SAPURLSession.RequestDisposition) -> Swift.Void)
-
Declaration
Swift
public func sapURLSession(_ session: SAPURLSession, task: SAPURLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (SAPURLSession.HTTPRedirectDisposition) -> Swift.Void)
-
Declaration
Swift
public func sapURLSession(_ session: SAPURLSession, dataTask: SAPURLSessionTask, didReceive response: URLResponse, completionHandler: @escaping (SAPURLSession.ResponseDisposition) -> Void)
-
Declaration
Swift
public func sapURLSession(_ session: SAPURLSession, downloadTask: SAPURLSessionTask, didFinishDownloadingTo location: URL, completionHandler: @escaping (SAPURLSession.DidCompleteDisposition) -> Void)
-
Declaration
Swift
public func sapURLSession(_ session: SAPURLSession, task: SAPURLSessionTask, didCompleteWithError error: Error?, completionHandler: @escaping (SAPURLSession.DidCompleteDisposition) -> Void)
-
Declaration
Swift
public func sapURLSession(_ session: SAPURLSession, task: SAPURLSessionTask, didCompleteWithError error: Error?)
-
Undocumented
Declaration
Swift
public func copy() -> Any?