|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguard.jsf.authentication.PortletRequestWrapper
net.sf.jguard.jsf.authentication.JGuardPortletRequestWrapper
public class JGuardPortletRequestWrapper
| Field Summary |
|---|
| Fields inherited from class net.sf.jguard.jsf.authentication.PortletRequestWrapper |
|---|
request |
| Fields inherited from interface javax.portlet.PortletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO |
| Constructor Summary | |
|---|---|
JGuardPortletRequestWrapper(javax.portlet.PortletRequest request)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getRemoteUser()
|
java.security.Principal |
getUserPrincipal()
return a SubjectAsPrincipal object which wrap the Subject in a Principal. |
boolean |
isUserInRole(java.lang.String role)
wrap the isUserInRole method to check against all the RolePrincipal's set of the Subject object. |
| Methods inherited from class net.sf.jguard.jsf.authentication.PortletRequestWrapper |
|---|
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isWindowStateAllowed, removeAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JGuardPortletRequestWrapper(javax.portlet.PortletRequest request)
| Method Detail |
|---|
public boolean isUserInRole(java.lang.String role)
RolePrincipal's set of the Subject object.
isUserInRole in interface javax.portlet.PortletRequestisUserInRole in class PortletRequestWrapperrole - : name of the principal(role) we are looking for
public java.security.Principal getUserPrincipal()
getUserPrincipal in interface javax.portlet.PortletRequestgetUserPrincipal in class PortletRequestWrapperpublic java.lang.String getRemoteUser()
getRemoteUser in interface javax.portlet.PortletRequestgetRemoteUser in class PortletRequestWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||