com.spotfire.server.security
Class JAASSecurityContext

java.lang.Object
  extended by com.spotfire.server.security.SecurityContext
      extended by com.spotfire.server.security.JAASSecurityContext

public class JAASSecurityContext
extends SecurityContext

An extension to the SecurityContext that encapsulates the JAAS LoginContext instance that was used to authenticate the user.

Since:
DSS 7.3
See Also:
Serialized Form

Constructor Summary
JAASSecurityContext(String username, LoginContext loginContext)
          Creates a new SecurityContext instance.
JAASSecurityContext(String username, String password, LoginContext loginContext)
          Deprecated.  
 
Method Summary
 void logout()
          Logs out the principal encapsulated in this JAASSecurityContext.
 
Methods inherited from class com.spotfire.server.security.SecurityContext
getAuthenticationScheme, getAuthType, getPassword, getPrincipal, setAuthenticationScheme, setAuthType, valueBound, valueUnbound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAASSecurityContext

public JAASSecurityContext(String username,
                           LoginContext loginContext)
Creates a new SecurityContext instance. The username and password arguments are the credentials used when authenticating the principal. The third argument is the LoginContext that was used to authenticate the user.

Parameters:
username - the username
loginContext - a LoginContext containing an authenticated Subject

JAASSecurityContext

@Deprecated
public JAASSecurityContext(String username,
                                      String password,
                                      LoginContext loginContext)
Deprecated. 

Creates a new SecurityContext instance. The username and password arguments are the credentials used when authenticating the principal. The third argument is the LoginContext that was used to authenticate the user.

Parameters:
username - the username
password - the password
loginContext - a LoginContext containing an authenticated Subject
Method Detail

logout

public void logout()
Logs out the principal encapsulated in this JAASSecurityContext.

Overrides:
logout in class SecurityContext
See Also:
SecurityContext.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)


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