Top Description Fields Constructors Methods
org.eclipse.jetty.security.authentication

public Class SessionAuthentication

extends UserAuthenticationSucceeded
implements Serializable, ValueListener
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.Session.ValueListener, java.io.Serializable
Imports
java.io.IOException, .ObjectInputStream, .Serializable, org.eclipse.jetty.security.Authenticator, .LoginService, .SecurityHandler, .UserIdentity, org.eclipse.jetty.server.Session, org.slf4j.Logger, .LoggerFactory

SessionAuthentication When a user has been successfully authenticated with some types of Authenticator, the Authenticator stashes a SessionAuthentication into an HttpSession to remember that the user is authenticated.

Field Summary

Modifier and TypeField and Description
private final Object
private final String
private Session
public static final String
private static final Logger
private static final long
Inherited from org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded:
_authenticationType_userIdentity

Constructor Summary

AccessConstructor and Description
public
SessionAuthentication(String method, UserIdentity userIdentity, Object credentials)

Method Summary

Modifier and TypeMethod and Description
public UserIdentity
public void
public void
private void
public String
Inherited from org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded:
getAuthenticationTypeisUserInRolelogout

Field Detail

_credentialsback to summary
private final Object _credentials
_nameback to summary
private final String _name
_sessionback to summary
private Session _session
AUTHENTICATED_ATTRIBUTEback to summary
public static final String AUTHENTICATED_ATTRIBUTE
LOGback to summary
private static final Logger LOG
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded.serialVersionUID.

Constructor Detail

SessionAuthenticationback to summary
public SessionAuthentication(String method, UserIdentity userIdentity, Object credentials)

Method Detail

getUserIdentityback to summary
public UserIdentity getUserIdentity()

Overrides org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded.getUserIdentity.

Implements org.eclipse.jetty.security.AuthenticationState.Succeeded.getUserIdentity.

Returns:UserIdentity

Doc from org.eclipse.jetty.security.AuthenticationState.Succeeded.getUserIdentity.

The UserIdentity of the authenticated user.

Annotations
@Override
onSessionActivationback to summary
public void onSessionActivation(Session session)

Overrides default org.eclipse.jetty.server.Session.ValueListener.onSessionActivation.

Annotations
@Override
onSessionPassivationback to summary
public void onSessionPassivation(Session session)

Overrides default org.eclipse.jetty.server.Session.ValueListener.onSessionPassivation.

Annotations
@Override
readObjectback to summary
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
toStringback to summary
public String toString()

Overrides org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override