-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/document-interfaces' into 'develop'
Feature/document interfaces See merge request !131
- Loading branch information
Showing
19 changed files
with
352 additions
and
3 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
backend/src/main/kotlin/io/ticktag/library/hashing/HashingLibrary.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
package io.ticktag.library.hashing | ||
|
||
interface HashingLibrary { | ||
/** | ||
* Library function for hashing passwords so they can be stored in the databse | ||
* @param password plain text password | ||
* @return hashedPassword | ||
*/ | ||
fun hashPassword(password: String): String | ||
|
||
/** | ||
* Check if password hashed is equal the hash | ||
* @param password plain text password, which will be checked | ||
* @param hash hash which will be checked | ||
* @return true if given password hashed is equal to the given hash, otherwise false | ||
*/ | ||
fun checkPassword(password: String, hash: String): Boolean | ||
} |
5 changes: 5 additions & 0 deletions
5
backend/src/main/kotlin/io/ticktag/library/unicode/NameNormalizationLibrary.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
package io.ticktag.library.unicode | ||
|
||
interface NameNormalizationLibrary { | ||
/** | ||
* normalize names so user input can be compared | ||
* @param name any name which has to be normalized | ||
* @return normalized name | ||
*/ | ||
fun normalize(name: String): String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
backend/src/main/kotlin/io/ticktag/service/fallbackadmin/services/FallbackAdminService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package io.ticktag.service.fallbackadmin.services | ||
|
||
interface FallbackAdminService { | ||
/** | ||
* Function will be used to ensure that there is always an admin | ||
*/ | ||
fun ensureAdminExists() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.