org.ow2.jonas.security.internal.realm.factory
Interface JResourceRemote

All Superinterfaces:
Remote
All Known Implementing Classes:
JResourceRemoteImpl

public interface JResourceRemote
extends Remote

This interface defines a method to allow authentication on server side even for Client container or remote applications

Author:
Florent Benoit

Method Summary
 JSubject authenticate(String principalName, char[] arrayPass, String resourceName)
          Authenticate a given user
 Subject authenticateJAAS(String principalName, char[] arrayPass, String entryName)
          Authenticate a given user
 

Method Detail

authenticate

JSubject authenticate(String principalName,
                      char[] arrayPass,
                      String resourceName)
                      throws RemoteException
Authenticate a given user

Parameters:
principalName - name of the user
arrayPass - password of the user
resourceName - type of resource to use to register ( memory, jdbc, ldap)
Returns:
an authenticated subject if it succeed
Throws:
RemoteException - if the authentication failed

authenticateJAAS

Subject authenticateJAAS(String principalName,
                         char[] arrayPass,
                         String entryName)
                         throws RemoteException
Authenticate a given user

Parameters:
principalName - name of the user
arrayPass - password of the user
entryName - the name of the JAAS entry to search in jaas configuration file
Returns:
an authenticated subject if it succeed
Throws:
RemoteException - if the authentication failed


Copyright © 2010 OW2 Consortium. All Rights Reserved.