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
apikeyCredentialDiscoveryDiscovery implementation that implements the
APIKeyCredentialDiscoveryprotocol. The default value is a default implementation.isAPIKeyAccessOnlyA 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?