Interface AuthContextProvider
-
- All Known Subinterfaces:
AuthContextProcessor
public interface AuthContextProviderDefines auth contexts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserAndRolesAuthContextgetAuthContextForSubject(javax.security.auth.Subject subject)Return base auth context for a subjectUserAndRolesAuthContextgetAuthContextForSubjectAndProject(javax.security.auth.Subject subject, java.lang.String project)Create auth context for subject and a project contextUserAndRolesAuthContextgetAuthContextForUrnProject(java.lang.String project)Create auth context for a project context (Using URN)UserAndRolesAuthContextgetAuthContextForUserAndRoles(java.lang.String user, java.util.List<java.lang.String> rolelist)Create system auth context for username and rolesUserAndRolesAuthContextgetAuthContextForUserAndRolesAndProject(java.lang.String user, java.util.List<java.lang.String> rolelist, java.lang.String project)Synthesize context given user name, role list, and projectUserAndRolesAuthContextgetAuthContextWithProject(UserAndRolesAuthContext orig, java.lang.String project)Extend a generic auth context, with project-specific authorization
-
-
-
Method Detail
-
getAuthContextForSubject
UserAndRolesAuthContext getAuthContextForSubject(javax.security.auth.Subject subject)
Return base auth context for a subject- Parameters:
subject- auth subject
-
getAuthContextWithProject
UserAndRolesAuthContext getAuthContextWithProject(UserAndRolesAuthContext orig, java.lang.String project)
Extend a generic auth context, with project-specific authorization- Parameters:
orig- original auth contextproject- project name- Returns:
- new AuthContext with project-specific authorization added
-
getAuthContextForSubjectAndProject
UserAndRolesAuthContext getAuthContextForSubjectAndProject(javax.security.auth.Subject subject, java.lang.String project)
Create auth context for subject and a project context- Parameters:
subject- auth subjectproject- project name
-
getAuthContextForUserAndRolesAndProject
UserAndRolesAuthContext getAuthContextForUserAndRolesAndProject(java.lang.String user, java.util.List<java.lang.String> rolelist, java.lang.String project)
Synthesize context given user name, role list, and project- Parameters:
user- usernamerolelist- list of rolesproject- project name
-
getAuthContextForUserAndRoles
UserAndRolesAuthContext getAuthContextForUserAndRoles(java.lang.String user, java.util.List<java.lang.String> rolelist)
Create system auth context for username and roles- Parameters:
user- usernamerolelist- list of roles
-
getAuthContextForUrnProject
UserAndRolesAuthContext getAuthContextForUrnProject(java.lang.String project)
Create auth context for a project context (Using URN)- Parameters:
project- project name
-
-