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 delegated access strategies
- Loading branch information
1 parent
8e7d211
commit 0c8948b
Showing
23 changed files
with
260 additions
and
154 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
19 changes: 19 additions & 0 deletions
19
.../src/main/java/org/apereo/cas/validation/ServiceTicketValidationAuthorizerConfigurer.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,19 @@ | ||
package org.apereo.cas.validation; | ||
|
||
/** | ||
* This is {@link ServiceTicketValidationAuthorizerConfigurer}. | ||
* | ||
* @author Misagh Moayyed | ||
* @since 5.2.0 | ||
*/ | ||
public interface ServiceTicketValidationAuthorizerConfigurer { | ||
|
||
/** | ||
* Configure authorizer execution plan. | ||
* | ||
* @param plan the plan | ||
*/ | ||
default void configureAuthorizersExecutionPlan(final ServiceTicketValidationAuthorizersExecutionPlan plan) { | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
.../main/java/org/apereo/cas/validation/ServiceTicketValidationAuthorizersExecutionPlan.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,26 @@ | ||
package org.apereo.cas.validation; | ||
|
||
import java.util.Collection; | ||
|
||
/** | ||
* This is {@link ServiceTicketValidationAuthorizersExecutionPlan}. | ||
* | ||
* @author Misagh Moayyed | ||
* @since 5.2.0 | ||
*/ | ||
public interface ServiceTicketValidationAuthorizersExecutionPlan { | ||
|
||
/** | ||
* Register authorizer. | ||
* | ||
* @param authz the authz | ||
*/ | ||
void registerAuthorizer(ServiceTicketValidationAuthorizer authz); | ||
|
||
/** | ||
* Gets authorizers. | ||
* | ||
* @return the authorizers | ||
*/ | ||
Collection<ServiceTicketValidationAuthorizer> getAuthorizers(); | ||
} |
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
31 changes: 31 additions & 0 deletions
31
...ava/org/apereo/cas/validation/DefaultServiceTicketValidationAuthorizersExecutionPlan.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,31 @@ | ||
package org.apereo.cas.validation; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
/** | ||
* This is {@link DefaultServiceTicketValidationAuthorizersExecutionPlan}. | ||
* | ||
* @author Misagh Moayyed | ||
* @since 5.2.0 | ||
*/ | ||
public class DefaultServiceTicketValidationAuthorizersExecutionPlan implements ServiceTicketValidationAuthorizersExecutionPlan { | ||
private static final Logger LOGGER = LoggerFactory.getLogger(DefaultServiceTicketValidationAuthorizersExecutionPlan.class); | ||
|
||
private final List<ServiceTicketValidationAuthorizer> serviceTicketValidationAuthorizers = new ArrayList<>(); | ||
|
||
|
||
@Override | ||
public void registerAuthorizer(final ServiceTicketValidationAuthorizer authz) { | ||
serviceTicketValidationAuthorizers.add(authz); | ||
} | ||
|
||
@Override | ||
public Collection<ServiceTicketValidationAuthorizer> getAuthorizers() { | ||
return this.serviceTicketValidationAuthorizers; | ||
} | ||
} |
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.