org.jasig.cas.client.tomcat
Interface CasRealm

All Known Implementing Classes:
AssertionCasRealmDelegate, PropertiesCasRealmDelegate

public interface CasRealm

Describes Tomcat Realm implementations that do not require password for authentication.

Since:
3.1.12
Version:
$Revision$
Author:
Marvin S. Addison

Method Summary
 Principal authenticate(Principal p)
          Authenticates the given principal.
 String[] getRoles(Principal p)
          Gets the roles defined for the given principal.
 boolean hasRole(Principal principal, String role)
          Determines whether the given principal possesses the given role.
 

Method Detail

authenticate

Principal authenticate(Principal p)
Authenticates the given principal.

Parameters:
p - Principal to authenticate.
Returns:
New principal.

getRoles

String[] getRoles(Principal p)
Gets the roles defined for the given principal.

Parameters:
p - the principal to retrieve the roles for.
Returns:
Roles for given principal or empty array if none exist.

hasRole

boolean hasRole(Principal principal,
                String role)
Determines whether the given principal possesses the given role.

Parameters:
principal - Principal to evaluate.
role - Role to test for possession.
Returns:
True if principal has given role, false otherwise.


Copyright © 2006-2014 Jasig. All Rights Reserved.