站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 cr1 API 英文版文档

CatalinaProvider (JBoss Seam API Documentation) - JBoss Seam 1.1.0 cr1 API 英文版文档


org.jboss.seam.security.provider.catalina
Class CatalinaProvider

java.lang.Object
  extended by org.jboss.seam.security.provider.catalina.CatalinaProvider

public class CatalinaProvider
extends Object

Wrapper for Tomcat realm authentication. This class uses reflection to locate a Tomcat realm, and provides wrapper methods to authenticate against the realm. Under construction!

Author:
Shane Bryzak

Constructor Summary
CatalinaProvider(String localContext)
          Constructor - does some reflection gymnastics to find the Tomcat realm.
 
Method Summary
 Principal authenticate(String username, byte[] credentials)
          Authenticate the user using their username and credentials
 Principal authenticate(String username, String credentials)
          Authenticate the user using their username and credentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalinaProvider

public CatalinaProvider(String localContext)
Constructor - does some reflection gymnastics to find the Tomcat realm. This is so we don't have a dependency on the catalina libs.

Method Detail

authenticate

public Principal authenticate(String username,
                              String credentials)
Authenticate the user using their username and credentials

Parameters:
username - String
credentials - String
Returns:
Principal

authenticate

public Principal authenticate(String username,
                              byte[] credentials)
Authenticate the user using their username and credentials

Parameters:
username - String
credentials - byte[]
Returns:
Principal