it.eng.spagobi.security
Interface IPortalSecurityProvider


public interface IPortalSecurityProvider

This is interface for gethering security information from portal server. A Specific subclass exists for each portal server.


Method Summary
 boolean authenticateUser(java.lang.String userName, byte[] password)
          Authenticate a user
 java.util.List getAllProfileAttributesNames()
          Gets the list of names of all attributes of all profiles defined in the portal server.
 java.util.List getRoles()
           
 java.util.List getUserRoles(java.lang.String user, it.eng.spago.base.SourceBean config)
          Get the list of the user roles.
 

Method Detail

getRoles

java.util.List getRoles()
Returns:
The Role list. (list of it.eng.spagobi.bo.Role)

getUserRoles

java.util.List getUserRoles(java.lang.String user,
                            it.eng.spago.base.SourceBean config)
Get the list of the user roles. If the user doesn't exist the roles list is empty

Parameters:
user - Username
config - The configuration SourceBean
Returns:
List of user roles (list of it.eng.spagobi.bo.Role)

getAllProfileAttributesNames

java.util.List getAllProfileAttributesNames()
Gets the list of names of all attributes of all profiles defined in the portal server.

Returns:
the list of names of all attributes of all profiles defined in the portal server

authenticateUser

boolean authenticateUser(java.lang.String userName,
                         byte[] password)
Authenticate a user

Parameters:
userName - the username
password - bytes of the password, certificate, ...
Returns:
true if the user is autheticated false otherwise