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 -
Method Summary
Modifier and TypeMethodDescriptionshowAdminSecret
(User user) showBasicUserSecret
(jakarta.ws.rs.core.SecurityContext context) showSecret
(User user)
-
Constructor Details
-
ProtectedClassResource
public ProtectedClassResource()
-
-
Method Details
-
showSecret
-
showBasicUserSecret
-
showAdminSecret
-