|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.faces.security.AbstractAuthorizeTag
public abstract class AbstractAuthorizeTag
A base class for an <authorize> tag used to make Spring Security based authorization decisions.
This class is independent of tag rendering technology (JSP, Facelets). It treats tag attributes as simple strings (with the notable exception of the "access" attribute, which is always expected to contain a Spring EL expression). Therefore subclasses are expected to extract tag attribute values from the specific rendering technology, evaluate them as expressions if necessary, and use the result to set the String-based attributes of this class.
Constructor Summary | |
---|---|
AbstractAuthorizeTag()
|
Method Summary | |
---|---|
boolean |
authorize()
Make an authorization decision by considering all <authorize> tag attributes. |
boolean |
authorizeUsingAccessExpression()
Make an authorization decision based on a Spring EL expression. |
boolean |
authorizeUsingGrantedAuthorities()
Make an authorization decision by considering ifAllGranted, ifAnyGranted, and ifNotGranted. |
boolean |
authorizeUsingUrlCheck()
Make an authorization decision based on the URL and HTTP method attributes. |
java.lang.String |
getAccess()
|
java.lang.String |
getIfAllGranted()
|
java.lang.String |
getIfAnyGranted()
|
java.lang.String |
getIfNotGranted()
|
java.lang.String |
getMethod()
|
protected abstract javax.servlet.ServletRequest |
getRequest()
This method allows subclasses to provide a way to access the ServletRequest according to the rendering technology. |
protected abstract javax.servlet.ServletResponse |
getResponse()
This method allows subclasses to provide a way to access the ServletResponse according to the rendering technology. |
protected abstract javax.servlet.ServletContext |
getServletContext()
This method allows subclasses to provide a way to access the ServletContext according to the rendering technology. |
java.lang.String |
getUrl()
|
void |
setAccess(java.lang.String access)
|
void |
setIfAllGranted(java.lang.String ifAllGranted)
|
void |
setIfAnyGranted(java.lang.String ifAnyGranted)
|
void |
setIfNotGranted(java.lang.String ifNotGranted)
|
void |
setMethod(java.lang.String method)
|
void |
setUrl(java.lang.String url)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAuthorizeTag()
Method Detail |
---|
protected abstract javax.servlet.ServletRequest getRequest()
protected abstract javax.servlet.ServletResponse getResponse()
protected abstract javax.servlet.ServletContext getServletContext()
public boolean authorize() throws java.io.IOException
java.io.IOException
public boolean authorizeUsingGrantedAuthorities()
public boolean authorizeUsingAccessExpression() throws java.io.IOException
java.io.IOException
public boolean authorizeUsingUrlCheck() throws java.io.IOException
java.io.IOException
public java.lang.String getAccess()
public void setAccess(java.lang.String access)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getMethod()
public void setMethod(java.lang.String method)
public java.lang.String getIfAllGranted()
public void setIfAllGranted(java.lang.String ifAllGranted)
public java.lang.String getIfAnyGranted()
public void setIfAnyGranted(java.lang.String ifAnyGranted)
public java.lang.String getIfNotGranted()
public void setIfNotGranted(java.lang.String ifNotGranted)
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |