Class AuthController


  • public class AuthController
    extends Object
    • Constructor Detail

      • AuthController

        public AuthController()
    • Method Detail

      • getAccessToken

        public static String getAccessToken()
      • getOwner

        public static org.gcube.common.security.Owner getOwner()
      • checkRealmRole

        public static boolean checkRealmRole​(String realm_role)
      • checkRealmRole

        public static boolean checkRealmRole​(String realm_role,
                                             String access_token)
      • checkContextRole

        public static boolean checkContextRole​(String context_role)
      • checkContextRole

        public static boolean checkContextRole​(String context_role,
                                               org.gcube.common.security.Owner owner)
      • checkRole

        public static boolean checkRole​(String role)
      • checkAnyRole

        public static boolean checkAnyRole​(List<String> roles)
      • userIsMe

        public static boolean userIsMe​(String username)
      • userIsMe

        public static boolean userIsMe​(String username,
                                       org.gcube.common.security.Owner owner)
      • checkIsRealmAdmin

        public static void checkIsRealmAdmin​(String message)
                                      throws jakarta.ws.rs.ForbiddenException
        Throws:
        jakarta.ws.rs.ForbiddenException
      • checkIsContextmAdmin

        public static void checkIsContextmAdmin​(String message)
                                         throws jakarta.ws.rs.ForbiddenException
        Throws:
        jakarta.ws.rs.ForbiddenException