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 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:
      authenticatedUser in interface org.apache.fineract.infrastructure.security.service.PlatformSecurityContext
    • isAuthenticated

      public void isAuthenticated()
      Specified by:
      isAuthenticated in interface org.apache.fineract.infrastructure.security.service.PlatformUserRightsContext
    • getAuthenticatedUserIfPresent

      public org.apache.fineract.useradministration.domain.AppUser getAuthenticatedUserIfPresent()
      Specified by:
      getAuthenticatedUserIfPresent in interface org.apache.fineract.infrastructure.security.service.PlatformSecurityContext
    • authenticatedUser

      public org.apache.fineract.useradministration.domain.AppUser authenticatedUser(org.apache.fineract.commands.domain.CommandWrapper commandWrapper)
      Specified by:
      authenticatedUser in interface org.apache.fineract.infrastructure.security.service.PlatformSecurityContext
    • validateAccessRights

      public void validateAccessRights(String resourceOfficeHierarchy)
      Specified by:
      validateAccessRights in interface org.apache.fineract.infrastructure.security.service.PlatformSecurityContext
    • officeHierarchy

      public String officeHierarchy()
      Specified by:
      officeHierarchy in interface org.apache.fineract.infrastructure.security.service.PlatformSecurityContext
    • doesPasswordHasToBeRenewed

      public boolean doesPasswordHasToBeRenewed(org.apache.fineract.useradministration.domain.AppUser currentUser)
      Specified by:
      doesPasswordHasToBeRenewed in interface org.apache.fineract.infrastructure.security.service.PlatformSecurityContext