Authn

public class Authn

Authn client-side service implementer as defined in gemSpec_Authentisierung Vers_V1.1.0 Spezifikation Authentisierung des Versicherten ePA

  • Holds the information the signature can be validated with.

    See more

    Declaration

    Swift

    public struct CertificateInfo
  • List of signature algorithms that can be used to sign a challenge for authentication.

    See more

    Declaration

    Swift

    public enum SignatureAlgorithm
  • Wrapper for string information to be passed around

    See more

    Declaration

    Swift

    public struct Token
  • Initialize Authn service

    Declaration

    Swift

    public convenience init(service url: URL)

    Parameters

    url

    the base url for the Aktor Authn service. [e.g. https://www.aktor-service.de/Authentication/I_Authentication_Insurant]

  • Create a login Token to be send to the ePa system to validate our authenticity.

    Declaration

    Swift

    public func login(authenticator: Authenticator) -> Executable<Token>

    Parameters

    authenticator

    Instance of the Authenticator protocol

    Return Value

    Executable that emits a Token that can be used to validate authenticity.

  • Request a new login Token to be send to the ePa system by renewing the provided token.

    Declaration

    Swift

    public func renew(token: Token) -> Executable<Token>

    Parameters

    token

    The Token to send to the service to request a renewed one.

    Return Value

    Executable that emits a Token that can be used to validate authenticity.

  • Logout [e.g. invalidate] an Authn.Token

    Declaration

    Swift

    public func logout(token: Token) -> Executable<Bool>

    Parameters

    token

    Authentication Token to be invalidated

    Return Value

    Executable that emits true if invalidation was successful otherwise false.

  • Undocumented

    See more

    Declaration

    Swift

    public enum Error : Swift.Error