com.spotfire.server.security
Class JAASAuthenticator

java.lang.Object
  extended by com.spotfire.server.security.JAASAuthenticator
All Implemented Interfaces:
Authenticator

public class JAASAuthenticator
extends Object
implements Authenticator

An Authenticator implementation that uses the Java Authentication and Authorization Services (JAAS) to authenticate users.

Since:
7.3

Constructor Summary
JAASAuthenticator()
           
 
Method Summary
 SecurityContext authenticate(String userId, String password, AuthenticationContext authContext)
          Authenticates the user with the specified userId and password credentials, using the JAAS configuration specified by the configuration parameter to the setConfiguration method.
static boolean isInUserDirectory(String userId)
          Deprecated. 
 void setConfiguration(String configuration)
          Set the name of the JAAS application configuration to be used when authenticating users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAASAuthenticator

public JAASAuthenticator()
Method Detail

setConfiguration

public void setConfiguration(String configuration)
Set the name of the JAAS application configuration to be used when authenticating users.

Specified by:
setConfiguration in interface Authenticator
Parameters:
configuration - configuration name

authenticate

public SecurityContext authenticate(String userId,
                                    String password,
                                    AuthenticationContext authContext)
Authenticates the user with the specified userId and password credentials, using the JAAS configuration specified by the configuration parameter to the setConfiguration method. If the authentication is successful, the method returns a SecurityContext object. If the authentication fails, the method returns null.

The userId and password arguments may not be null. The authContext argument is ignored.

Specified by:
authenticate in interface Authenticator
Parameters:
userId - user id
password - password
authContext - authentication context (ignored)
Returns:
a SecurityContext if the authentication is successful, null if it fails

isInUserDirectory

@Deprecated
public static boolean isInUserDirectory(String userId)
Deprecated. 



Copyright © 2000-2009 TIBCO Software Inc. All Rights Reserved.