Class SpringSecurityPlatformSecurityContext
java.lang.Object
org.apache.fineract.infrastructure.security.service.SpringSecurityPlatformSecurityContext
- All Implemented Interfaces:
org.apache.fineract.infrastructure.security.service.PlatformSecurityContext,org.apache.fineract.infrastructure.security.service.PlatformUserRightsContext
@Service
public class SpringSecurityPlatformSecurityContext
extends Object
implements org.apache.fineract.infrastructure.security.service.PlatformSecurityContext
Wrapper around spring security's
SecurityContext for extracted the current authenticated AppUser.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final List<org.apache.fineract.commands.domain.CommandWrapper> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.fineract.useradministration.domain.AppUserorg.apache.fineract.useradministration.domain.AppUserauthenticatedUser(org.apache.fineract.commands.domain.CommandWrapper commandWrapper) booleandoesPasswordHasToBeRenewed(org.apache.fineract.useradministration.domain.AppUser currentUser) org.apache.fineract.useradministration.domain.AppUservoidvoidvalidateAccessRights(String resourceOfficeHierarchy)
-
Field Details
-
EXEMPT_FROM_PASSWORD_RESET_CHECK
protected static final List<org.apache.fineract.commands.domain.CommandWrapper> EXEMPT_FROM_PASSWORD_RESET_CHECK
-
-
Constructor Details
-
SpringSecurityPlatformSecurityContext
public SpringSecurityPlatformSecurityContext()
-
-
Method Details
-
authenticatedUser
public org.apache.fineract.useradministration.domain.AppUser authenticatedUser()- Specified by:
authenticatedUserin interfaceorg.apache.fineract.infrastructure.security.service.PlatformSecurityContext
-
isAuthenticated
public void isAuthenticated()- Specified by:
isAuthenticatedin interfaceorg.apache.fineract.infrastructure.security.service.PlatformUserRightsContext
-
getAuthenticatedUserIfPresent
public org.apache.fineract.useradministration.domain.AppUser getAuthenticatedUserIfPresent()- Specified by:
getAuthenticatedUserIfPresentin interfaceorg.apache.fineract.infrastructure.security.service.PlatformSecurityContext
-
authenticatedUser
public org.apache.fineract.useradministration.domain.AppUser authenticatedUser(org.apache.fineract.commands.domain.CommandWrapper commandWrapper) - Specified by:
authenticatedUserin interfaceorg.apache.fineract.infrastructure.security.service.PlatformSecurityContext
-
validateAccessRights
- Specified by:
validateAccessRightsin interfaceorg.apache.fineract.infrastructure.security.service.PlatformSecurityContext
-
officeHierarchy
- Specified by:
officeHierarchyin interfaceorg.apache.fineract.infrastructure.security.service.PlatformSecurityContext
-
doesPasswordHasToBeRenewed
public boolean doesPasswordHasToBeRenewed(org.apache.fineract.useradministration.domain.AppUser currentUser) - Specified by:
doesPasswordHasToBeRenewedin interfaceorg.apache.fineract.infrastructure.security.service.PlatformSecurityContext
-