Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.http
Interface UserPrincipal  view UserPrincipal download UserPrincipal.java

All Superinterfaces:
java.security.Principal

public interface UserPrincipal
extends java.security.Principal

User Principal. Extends the security principal with a method to check if the user is in a role.

Version:
$Id: UserPrincipal.java,v 1.7 2002/05/07 14:29:18 gregwilkins Exp $

Method Summary
 boolean isAuthenticated()
          Check authentication status.
 boolean isUserInRole(java.lang.String role)
          Check if the user is in a role.
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Method Detail

isAuthenticated

public boolean isAuthenticated()
Check authentication status. Implementations of this method may adorn the calling context to assoicate it with the authenticated principal (eg ThreadLocals). If such context associations are made, they should be considered valid until a UserRealm.deAuthenticate(UserPrincipal) call is made for this UserPrincipal.


isUserInRole

public boolean isUserInRole(java.lang.String role)
Check if the user is in a role.