org.springframework.security.taglibs.velocity
Interface Authz

All Known Implementing Classes:
AuthzImpl

public interface Authz

Wrapper the implementation of Spring Security JSP tag includes: AuthenticationTag, AclTag, LegacyAuthorizeTag

Version:
$Id: Authz.java 3894 2009-09-15 16:34:05Z ltaylor $
Author:
Wang Qi

Method Summary
 boolean allGranted(String roles)
          all the listed roles must be granted to return true, otherwise false;
 boolean anyGranted(String roles)
          any the listed roles must be granted to return true, otherwise false;
 ApplicationContext getAppCtx()
          get Spring application context which contains
 String getPrincipal()
          return the principal's name, supports the various type of principals that can exist in the Authentication object, such as a String or UserDetails instance
 boolean noneGranted(String roles)
          none the listed roles must be granted to return true, otherwise false;
 void setAppCtx(ApplicationContext appCtx)
          set Spring application context which contains Acegi related bean
 

Method Detail

allGranted

boolean allGranted(String roles)
all the listed roles must be granted to return true, otherwise false;

Parameters:
roles - - comma separate GrantedAuthoritys
Returns:
granted (true|false)

anyGranted

boolean anyGranted(String roles)
any the listed roles must be granted to return true, otherwise false;

Parameters:
roles - - comma separate GrantedAuthoritys
Returns:
granted (true|false)

getAppCtx

ApplicationContext getAppCtx()
get Spring application context which contains


getPrincipal

String getPrincipal()
return the principal's name, supports the various type of principals that can exist in the Authentication object, such as a String or UserDetails instance

Returns:
string representation of principal's name

noneGranted

boolean noneGranted(String roles)
none the listed roles must be granted to return true, otherwise false;

Parameters:
roles - - comma separate GrantedAuthoritys
Returns:
granted (true|false)

setAppCtx

void setAppCtx(ApplicationContext appCtx)
set Spring application context which contains Acegi related bean



Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.