Constructor and Description |
---|
ProtectedResource() |
Modifier and Type | Method and Description |
---|---|
String |
getAdminNameCtx(SecurityContext ctx) |
String |
getAdminRole() |
String |
getAdminRoleCtx(SecurityContext ctx) |
String |
getAuthMethod(SecurityContext ctx) |
String |
getUserNameCtx(SecurityContext ctx) |
String |
getUserRole() |
String |
getUserRoleCtx(SecurityContext ctx) |
@Path(value="/adminRoleCtx") @GET public String getAdminRoleCtx(@Context SecurityContext ctx)
@RolesAllowed(value="admin") @Path(value="/adminRole") @GET public String getAdminRole()
@Path(value="/userRoleCtx") @GET public String getUserRoleCtx(@Context SecurityContext ctx)
@RolesAllowed(value="user") @Path(value="/userRole") @GET public String getUserRole()
@Path(value="/userNameCtx") @GET public String getUserNameCtx(@Context SecurityContext ctx)
@Path(value="/adminNameCtx") @GET public String getAdminNameCtx(@Context SecurityContext ctx)
Copyright © 2013. All Rights Reserved.