Top Description Constructors Methods
org.eclipse.jetty.security

public Class EmptyLoginService

extends Object
implements LoginService
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.security.LoginService
Imports
java.util.function.Function, org.eclipse.jetty.server.Request, .Session

LoginService implementation which always denies any attempt to login.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IdentityService
getIdentityService()

Implements org.eclipse.jetty.security.LoginService.getIdentityService.

Get the IdentityService associated with this Login Service.

public String
public UserIdentity
login(String
The username.
username
,
Object
The users credentials.
credentials
,
Request
The request or null
request
,
Function<Boolean, Session>
function to retrieve or create a session.
getOrCreateSession
)

Implements org.eclipse.jetty.security.LoginService.login.

Login a user.

public void
public void
setIdentityService(IdentityService
the IdentityService associated with this Login Service.
service
)

Implements org.eclipse.jetty.security.LoginService.setIdentityService.

Set the IdentityService associated with this Login Service.

public boolean
validate(UserIdentity
The user to validate
user
)

Implements org.eclipse.jetty.security.LoginService.validate.

Validate a user identity.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EmptyLoginServiceback to summary
public EmptyLoginService()

Method Detail

getIdentityServiceback to summary
public IdentityService getIdentityService()

Implements org.eclipse.jetty.security.LoginService.getIdentityService.

Doc from org.eclipse.jetty.security.LoginService.getIdentityService.

Get the IdentityService associated with this Login Service.

Returns:IdentityService

the IdentityService associated with this Login Service.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.eclipse.jetty.security.LoginService.getName.

Returns:String

Doc from org.eclipse.jetty.security.LoginService.getName.

Get the name of the login service (aka Realm name)

Annotations
@Override
loginback to summary
public UserIdentity login(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession)

Implements org.eclipse.jetty.security.LoginService.login.

Doc from org.eclipse.jetty.security.LoginService.login.

Login a user.

Parameters
username:String

The username.

credentials:Object

The users credentials.

request:Request

The request or null

getOrCreateSession:Function<Boolean, Session>

function to retrieve or create a session.

Returns:UserIdentity

A UserIdentity if the credentials matched, otherwise null

Annotations
@Override
logoutback to summary
public void logout(UserIdentity user)

Implements org.eclipse.jetty.security.LoginService.logout.

Annotations
@Override
setIdentityServiceback to summary
public void setIdentityService(IdentityService service)

Implements org.eclipse.jetty.security.LoginService.setIdentityService.

Doc from org.eclipse.jetty.security.LoginService.setIdentityService.

Set the IdentityService associated with this Login Service.

Parameters
service:IdentityService

the IdentityService associated with this Login Service.

Annotations
@Override
validateback to summary
public boolean validate(UserIdentity user)

Implements org.eclipse.jetty.security.LoginService.validate.

Doc from org.eclipse.jetty.security.LoginService.validate.

Validate a user identity. Validate that a UserIdentity previously created by a call to login(String, Object, Request, Function) is still valid.

Parameters
user:UserIdentity

The user to validate

Returns:boolean

true if authentication has not been revoked for the user.

Annotations
@Override