org.jboss.portal.portlet.spi
Interface SecurityContext

All Known Implementing Classes:
AbstractSecurityContext

public interface SecurityContext

Version:
$Revision: 5448 $
Author:
Julien Viet

Method Summary
 java.lang.String getAuthType()
           
 java.lang.String getRemoteUser()
           
 java.security.Principal getUserPrincipal()
           
 boolean isAuthenticated()
           
 boolean isSecure()
           
 boolean isUserInRole(java.lang.String roleName)
           
 

Method Detail

isSecure

boolean isSecure()
Returns:
true if is secured

isAuthenticated

boolean isAuthenticated()
Returns:
true if it is authenticated

getAuthType

java.lang.String getAuthType()
Returns:
the auth type

getRemoteUser

java.lang.String getRemoteUser()
Returns:
the remote user

getUserPrincipal

java.security.Principal getUserPrincipal()
Returns:
the user principal

isUserInRole

boolean isUserInRole(java.lang.String roleName)
Parameters:
roleName - the role name
Returns:
true if the user is in role


Copyright © 2008. All Rights Reserved.