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

Quick Search    Search Deep

org.securityfilter.realm
Interface SecurityRealmInterface  view SecurityRealmInterface download SecurityRealmInterface.java

All Known Implementing Classes:
SimpleSecurityRealmBase

public interface SecurityRealmInterface

SecurityRealmInterface - realm interface for SecurityFilter. Implement this interface to provide a realm implementation against which SecurityFilter can authenticate and authortize users. Typically, a project will implement this interface or adapt an existing realm implementation to this interface.

Version:
$Revision: 1.4 $ $Date: 2003/01/06 00:17:25 $

Method Summary
 java.security.Principal authenticate(java.lang.String username, java.lang.String password)
          Authenticate a user.
 boolean isUserInRole(java.security.Principal principal, java.lang.String rolename)
          Test for role membership.
 

Method Detail

authenticate

public java.security.Principal authenticate(java.lang.String username,
                                            java.lang.String password)
Authenticate a user.


isUserInRole

public boolean isUserInRole(java.security.Principal principal,
                            java.lang.String rolename)
Test for role membership. Use Principal.getName() to get the username from the principal object.