Class HasPermissionRacImpl

java.lang.Object
com.totvs.tjf.security.access.rac.HasPermissionRacImpl
All Implemented Interfaces:
HasPermission

public class HasPermissionRacImpl extends Object implements HasPermission
Creates RestTemplate for verify permissions on Authorization Service.
Author:
Marcos Paulo dos Santos
See Also:
  • Constructor Details

  • Method Details

    • isPermitted

      public boolean isPermitted(String token, String feature)
      Verify on Authorization Service if user has permission for a feature.
      Specified by:
      isPermitted in interface HasPermission
      Parameters:
      token - value of the Authorization header Bearer token.
      feature - value of the feature that will be verified in the authorization service.
      Returns:
      true if the permission is granted in permissions URI, false otherwise.