-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #737 from scalecube/update-authenticator-interface
Update authenticator interface
- Loading branch information
Showing
10 changed files
with
222 additions
and
63 deletions.
There are no files selected for viewing
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
6 changes: 2 additions & 4 deletions
6
services-api/src/main/java/io/scalecube/services/auth/PrincipalMapper.java
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,15 +1,13 @@ | ||
package io.scalecube.services.auth; | ||
|
||
import java.util.Map; | ||
|
||
@FunctionalInterface | ||
public interface PrincipalMapper<O> { | ||
public interface PrincipalMapper<A, P> { | ||
|
||
/** | ||
* Turns {@code authData} to concrete principal object. | ||
* | ||
* @param authData auth data | ||
* @return converted principle object | ||
*/ | ||
O map(Map<String, String> authData); | ||
P map(A authData); | ||
} |
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.