SAPcpmsAuthenticationManager

public class SAPcpmsAuthenticationManager : AuthenticationHandling

The SAPcpmsAuthenticationManager implements the AuthenticationHandling protocol, thus capable of being injected into the adequate authentication observers for result handling. Stores and compares users based on the newly acquired credentials through the SAPcpmsUserRoles component.

  • The user delegate for event notification.

    Declaration

    Swift

    public weak var delegate: AuthenticationDelegate?
  • The role service URL for SAPcpmsUserRoles.

    Declaration

    Swift

    public let roleServiceURL: URL
  • The store used to store the authenticated user’s id.

    Declaration

    Swift

    public let store: CodableStoring
  • The key which under the authenticated user’s id is stored.

    Declaration

    Swift

    public let currentUserIDKey: String
  • Instantiates the class.

    Declaration

    Swift

    public init(roleServiceURL: URL, store: CodableStoring, delegate: AuthenticationDelegate?)

    Parameters

    roleServiceURL

    The role service URL necessary to create the SAPcpmsUserRoles component.

    store

    The store used to store the authenticated user’s id.

    delegate

    The user delegate for event notification.

  • Instantiates the class.

    Declaration

    Swift

    public convenience init(settingsParameters: SAPcpmsSettingsParameters, store: CodableStoring, delegate: AuthenticationDelegate?)

    Parameters

    settingsParameters

    The SAPcpmsSettingsParameters necessary to create the SAPcpmsUserRoles component.

    store

    The store used to store the authenticated user’s id.

    delegate

    The user delegate for event notification.