***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.user
Class SubjectAuthenticator

com.sas.services.user.SubjectAuthenticator

public class SubjectAuthenticator

This class is used to marshal the contents of a Subject across a remote link to a UserService in order to create a UserContext based on the contents of the Subject.


Method Summary
static UserContextInterface newAuthenticatedUser(UserServiceInterface userService, javax.security.auth.Subject subject)
          Create a UserContext from an already authenticated Subject.
static UserContextInterface newAuthenticatedUser(UserServiceInterface userService, javax.security.auth.Subject subject, java.util.Map advancedOptions)
          Create a UserContext from an already authenticated Subject.
 

Method Detail

newAuthenticatedUser

public static UserContextInterface newAuthenticatedUser(UserServiceInterface userService,
                                                        javax.security.auth.Subject subject)
                                                 throws ServiceException,
                                                        UserInitializationException,
                                                        java.rmi.RemoteException
Create a UserContext from an already authenticated Subject.

Parameters:
userService - The UserService to use to create the new UserContext. This will normally be a remote service.
subject - The authenticated Subject to pass to the remote User Service to initialize a UserContext from.
Returns:
An initialized UserContext, or null if there's a failure.
Throws:
UserInitializationException - if a potentially recoverable error occurs during UserContext initialization.
ServiceException - If an error occurs during user initialization.
java.rmi.RemoteException - In the event of remote object failure.

newAuthenticatedUser

public static UserContextInterface newAuthenticatedUser(UserServiceInterface userService,
                                                        javax.security.auth.Subject subject,
                                                        java.util.Map advancedOptions)
                                                 throws ServiceException,
                                                        UserInitializationException,
                                                        java.rmi.RemoteException
Create a UserContext from an already authenticated Subject.

Parameters:
userService - The UserService to use to create the new UserContext. This will normally be a remote service.
subject - The authenticated Subject to pass to the remote User Service to initialize a UserContext from.
advancedOptions - Map of advanced options.
Returns:
An initialized UserContext, or null if there's a failure.
Throws:
UserInitializationException - if a potentially recoverable error occurs during UserContext initialization.
ServiceException - If an error occurs during user initialization.
java.rmi.RemoteException - In the event of remote object failure.

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.