Skip to content

Latest commit

 

History

History
131 lines (64 loc) · 4.5 KB

README.md

File metadata and controls

131 lines (64 loc) · 4.5 KB

FdV Module Java Libraries

Introduction

This part describes the ePA FdV Modul functionalities and structure.

API Documentation

Generated API docs are available at https://gematik.github.io/ref-FdVModul.

License

Licensed under the Apache License, Version 2.0.

Overview

The FdV module bundles libraries that provide the functions (service localization, authentication, authorization, session handling, key access) necessary for the use of the electronic patient record.

FdV Modul overview

FdV Authentication

The authentication module provides the functionalities for authenticating the user to use the electronic patient record. All available IAuthenticator and the selected one will be returned by the AuthnService. The Authn class enforces required operations (login create challenge / login create token / renew token / logout token) according to ws-Trust to authenticate the user. The AuthenticationBindingSoap class forms the entry point for establishing the connection to the authentication web service.

FdV Authentication structure

FdV Authorization

The authorization module is not yet implemented

ePA Authorization structure

FdV Key Access

The key access module is not yet implemented

ePA Key Access structure

FdV Session Handler

The FdV SessionHandler module provides a ServiceLocalizerLoader for available service localization services.

FdV Session Handler structure

Service Localization API

ePA Service Localization API

IService Localizer

Interface to be implemented by service localizer as entry point to localize ePA service components. Start lookup DNS for retrieving endpoint URLs of various ePA gateway services. Once lookup has been done successfully, endpoint URLs for interfaces in ServiceInterfaceName can be retrieved.

IServiceLocalizer

The specific service localization needs a descriptor behind YOUR.service.localization\src\main\resources\META-INF\services with filename de.gematik.ti.fdv.epa.service.localization.spi.IServiceLocalizer and the content of the package and class which implements the service localizer interface e.g. de.gematik.ti.fdv.epa.service.localization.ServiceLocator

File META-INF services

ServiceInterfaceName

Description of the service interfaces and assignments of paths to the ePA file system components

LookupStatus

Status of service lookup in DNS - As long as the Service lookup is running, thus it might still in progress after ServiceLocatorType object has been initialized, or lookup was not successful for some reason, e.g. DNS was not accessible

ServiceInterfaceName / LookupStatus

Authentication Service Provider

ePA Authentication Service Provider

Authentication Service Provider Interface

The entry point for the ServiceLoader is the Authentication Service Provider Interface. This Interface returns the specific authentication provider implementation and a provider description.

IAuthenticationProvider

The specific authentication.provider needs a descriptor behind YOUR.PROVIDER\src\main\resources\META-INF\services with filename de.gematik.ti.fdv.authentication.service.provider.api.IAuthenticator and the content of the package and class which implements the service provider interface e.g. de.gematik.ti.epa.fdv.healthcard.authentication.Authenticator

File META-INF services

Getting Started

Build setup FdV Module

To use ePA FdV Modul library in a project, you need just to include following dependency:

Gradle dependency settings to use ePA FdV Modul library.

dependencies {
    implementation group: 'de.gematik.ti.epa', name: 'fdv.authentication', version: '1.0.2'
}

Maven dependency settings to use ePA FdV Modul library.

<dependencies>
    <dependency>
        <groupId>de.gematik.ti.epa</groupId>
        <artifactId>fdv.authentication</artifactId>
        <version>1.0.2</version>
    </dependency>
</dependencies>