Package com.example.helloworld.resources
Class ProtectedClassResource
- java.lang.Object
-
- com.example.helloworld.resources.ProtectedClassResource
-
@Path("/protected") @RolesAllowed("BASIC_GUY") public final class ProtectedClassResource extends Object
RolesAllowed
,PermitAll
are supported on the class level.Method level annotations take precedence over the class level ones
-
-
Constructor Summary
Constructors Constructor Description ProtectedClassResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
showAdminSecret(User user)
String
showBasicUserSecret(jakarta.ws.rs.core.SecurityContext context)
String
showSecret(User user)
-
-
-
Method Detail
-
showBasicUserSecret
@GET public String showBasicUserSecret(@Context jakarta.ws.rs.core.SecurityContext context)
-
-