Class BioAuthMapper
java.lang.Object
org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.BioAuthMapper
Mapper interface for converting BioAuthRequest credentials to a String.
- Since:
- 28.4.24
- Version:
- 1.0
- Author:
- Yasin M.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncredentialToString
(BioAuthRequest credential) Maps a BioAuthRequest entity to a string
-
Constructor Details
-
BioAuthMapper
public BioAuthMapper()
-
-
Method Details
-
credentialToString
public String credentialToString(BioAuthRequest credential) throws com.fasterxml.jackson.core.JsonProcessingException Maps a BioAuthRequest entity to a string- Parameters:
credential
- Request user credentials- Returns:
- String that represents the request
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- Following JSON parsing errors
-