forked from apereo/cas
-
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.
working on authentication context strategy
- Loading branch information
1 parent
d6d8dbb
commit 247e2b3
Showing
20 changed files
with
269 additions
and
119 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
7 changes: 4 additions & 3 deletions
7
...-api-authentication/src/main/java/org/jasig/cas/authentication/AuthenticationContext.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
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
25 changes: 25 additions & 0 deletions
25
...-authentication/src/main/java/org/jasig/cas/authentication/PrincipalElectionStrategy.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.jasig.cas.authentication; | ||
|
||
import org.jasig.cas.authentication.principal.Principal; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
/** | ||
* This is {@link PrincipalElectionStrategy} that attempts to nominate a given principal | ||
* as the primary principal object amongst many authentication events. | ||
* | ||
* @author Misagh Moayyed | ||
* @since 4.2.0 | ||
*/ | ||
public interface PrincipalElectionStrategy { | ||
|
||
/** | ||
* Elect the principal. | ||
* | ||
* @param authentications the authentications | ||
* @param principalAttributes the principal attributes | ||
* @return the principal | ||
*/ | ||
Principal nominate(Collection<Authentication> authentications, Map<String, Object> principalAttributes); | ||
} |
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.