org.jasig.cas.web.bind
Interface CredentialsBinder


Deprecated. Future versions of CAS will provide a mechanism to gain access to standard items from the Request object.

@Deprecated
public interface CredentialsBinder

Interface for a class that can bind items stored in the request to a particular credentials implementation. This allows for binding beyond the basic JavaBean/Request parameter binding that is handled by Spring automatically. Implementations are free to pass part or all of the HttpServletRequest to the Credentials.

Since:
3.0

This is a published and supported CAS Server 3 API.

Version:
$Revision: 47605 $ $Date: 2010-01-03 22:39:16 -0500 (Sun, 03 Jan 2010) $
Author:
Scott Battaglia

Method Summary
 void bind(javax.servlet.http.HttpServletRequest request, Credentials credentials)
          Deprecated. Method to allow manually binding attributes from the request object to properties of the credentials.
 boolean supports(java.lang.Class<?> clazz)
          Deprecated. Method to determine if a CredentialsBinder supports a specific class or not.
 

Method Detail

bind

void bind(javax.servlet.http.HttpServletRequest request,
          Credentials credentials)
Deprecated. 
Method to allow manually binding attributes from the request object to properties of the credentials. Useful when there is no mapping of attribute to property for the usual Spring binding to handle.

Parameters:
request - The HttpServletRequest from which we wish to bind credentials to
credentials - The credentials we will be doing custom binding to.

supports

boolean supports(java.lang.Class<?> clazz)
Deprecated. 
Method to determine if a CredentialsBinder supports a specific class or not.

Parameters:
clazz - The class to determine is supported or not
Returns:
true if this class is supported by the CredentialsBinder, false otherwise.


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.