org.jboss.resteasy.test.smoke
Class ProtectedResource

java.lang.Object
  extended by org.jboss.resteasy.test.smoke.ProtectedResource

public class ProtectedResource
extends java.lang.Object


Constructor Summary
ProtectedResource()
           
 
Method Summary
 java.lang.String getAdminNameCtx(SecurityContext ctx)
           
 java.lang.String getAdminRole()
           
 java.lang.String getAdminRoleCtx(SecurityContext ctx)
           
 java.lang.String getAuthMethod(SecurityContext ctx)
           
 java.lang.String getUserNameCtx(SecurityContext ctx)
           
 java.lang.String getUserRole()
           
 java.lang.String getUserRoleCtx(SecurityContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtectedResource

public ProtectedResource()
Method Detail

getAdminRoleCtx

public java.lang.String getAdminRoleCtx(@Context
                                        SecurityContext ctx)

getAdminRole

@RolesAllowed(value="admin")
public java.lang.String getAdminRole()

getUserRoleCtx

public java.lang.String getUserRoleCtx(@Context
                                       SecurityContext ctx)

getUserRole

@RolesAllowed(value="user")
public java.lang.String getUserRole()

getUserNameCtx

public java.lang.String getUserNameCtx(@Context
                                       SecurityContext ctx)

getAdminNameCtx

public java.lang.String getAdminNameCtx(@Context
                                        SecurityContext ctx)

getAuthMethod

public java.lang.String getAuthMethod(@Context
                                      SecurityContext ctx)


Copyright © 2010. All Rights Reserved.