Creating a custom security adapter class
Extend the iPortal Security Adapter class to customize authentication. The iPortal Security Extension requires access to the following libraries:
iPortalSecurityAdapter provides a set of empty methods. Extend this class and override any of the methods to provide custom IPSE authentication. To establish a secure session with Information Console using a custom security adapter, the following methods are required:
n
n
nThe login module of Information Console calls methods in the custom security class to perform authentication and to retrieve login credentials to pass to iServer. The authenticate( ) method returns a boolean value to indicate whether the login credentials provided are acceptable. The getter methods return the credentials that iServer requires. Each user name and password must correspond to an authentic user account on the volume configured by the volume profile. For example, to support a URL that authenticates using a single parameter, code, override authenticate( ) to retrieve the parameter from the HttpServletRequest and set the user name, password, and volumeProfile as in the following class:
public class SecurityCode extends com.actuate.iportal.security.iPortalSecurityAdapter {If there is a user "user1" with the password "user1" on the volume configured by the volume profile "CustomAccess," a valid URL that authenticates user1 using this security adapter is as follows:
(c) Copyright Actuate Corporation 2011 |
![]() |