|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.spotfire.server.security.SecurityContext
public class SecurityContext
The SecurityContext class contains information about
an authenticated Principal. It also implements the
HttpSessionBindingListener interface, so that the
Principal can be automatically logged out when its
HttpSession instance is invalidated.
| Constructor Summary | |
|---|---|
SecurityContext(String username)
Creates a new SecurityContext instance. |
|
SecurityContext(String username,
String password)
Deprecated. |
|
| Method Summary | |
|---|---|
AuthenticationScheme |
getAuthenticationScheme()
Returns the authentication scheme used when authenticating the principal. |
String |
getAuthType()
Deprecated. |
String |
getPassword()
Deprecated. |
SpotfirePrincipal |
getPrincipal()
Returns the SpotfirePrincipal instance representing
the authenicated principal. |
void |
logout()
Logs out the principal. |
void |
setAuthenticationScheme(AuthenticationScheme scheme)
Sets the authentication scheme used when authenticating the principal. |
void |
setAuthType(String authType)
Deprecated. |
void |
valueBound(HttpSessionBindingEvent event)
This HttpSessionBindingListener method is called
when the SecurityContext object is bound to an
HttpSession instance. |
void |
valueUnbound(HttpSessionBindingEvent event)
This HttpSessionBindingListener method is called
when the HttpSession instance, to which this
SecurityContext object is bound, is invalidated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityContext(String username)
SecurityContext instance. The
arguments are the credentials used when authenticating the
principal. The arguments may not be null.
username - the username
@Deprecated
public SecurityContext(String username,
String password)
SecurityContext instance. The
arguments are the credentials used when authenticating the
principal. The arguments may not be null.
username - the usernamepassword - the password| Method Detail |
|---|
public final SpotfirePrincipal getPrincipal()
SpotfirePrincipal instance representing
the authenicated principal. This principal object can be used
with the DecisionSite Server User Directory API.
@Deprecated public final String getPassword()
The current implementation returns null, and the
method will be removed entirely in a future release.
null, alwayspublic void logout()
SecurityContext.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)public final void valueUnbound(HttpSessionBindingEvent event)
HttpSessionBindingListener method is called
when the HttpSession instance, to which this
SecurityContext object is bound, is invalidated. The
method responds to this event by calling the logout
method.
event - a HttpSessionBindingEvent valueSecurityContext.logout()public final void valueBound(HttpSessionBindingEvent event)
HttpSessionBindingListener method is called
when the SecurityContext object is bound to an
HttpSession instance.
event - a HttpSessionBindingEvent valueSecurityContext.logout()public final AuthenticationScheme getAuthenticationScheme()
public final void setAuthenticationScheme(AuthenticationScheme scheme)
scheme - the authentication scheme used when authenticating
the principal@Deprecated public final void setAuthType(String authType)
AuthenticationScheme enumeration.
This method is deprecated. Use the
setAuthenticationScheme method instead.
scheme - the name of the authentication scheme used when
authenticating the principalSecurityContext.getAuthType(),
SecurityContext.setAuthenticationScheme(com.spotfire.server.security.AuthenticationScheme)@Deprecated public final String getAuthType()
AuthenticationScheme enumeration.
This method is deprecated. Use the
getAuthenticationScheme method instead.
SecurityContext.setAuthType(java.lang.String),
SecurityContext.getAuthenticationScheme()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||