Package org.eclipse.jetty.security
Class EmptyLoginService
java.lang.Object
org.eclipse.jetty.security.EmptyLoginService
- All Implemented Interfaces:
LoginService
LoginService implementation which always denies any attempt to login.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the IdentityService associated with this Login Service.getName()
Login a user.void
logout
(UserIdentity user) void
setIdentityService
(IdentityService service) Set the IdentityService associated with this Login Service.boolean
validate
(UserIdentity user) Validate a user identity.
-
Constructor Details
-
EmptyLoginService
public EmptyLoginService()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceLoginService
- Returns:
- Get the name of the login service (aka Realm name)
-
login
public UserIdentity login(String username, Object credentials, javax.servlet.ServletRequest request) Description copied from interface:LoginService
Login a user.- Specified by:
login
in interfaceLoginService
- Parameters:
username
- The user namecredentials
- The users credentialsrequest
- TODO- Returns:
- A UserIdentity if the credentials matched, otherwise null
-
validate
Description copied from interface:LoginService
Validate a user identity. Validate that a UserIdentity previously created by a call toLoginService.login(String, Object, ServletRequest)
is still valid.- Specified by:
validate
in interfaceLoginService
- Parameters:
user
- The user to validate- Returns:
- true if authentication has not been revoked for the user.
-
getIdentityService
Description copied from interface:LoginService
Get the IdentityService associated with this Login Service.- Specified by:
getIdentityService
in interfaceLoginService
- Returns:
- the IdentityService associated with this Login Service.
-
setIdentityService
Description copied from interface:LoginService
Set the IdentityService associated with this Login Service.- Specified by:
setIdentityService
in interfaceLoginService
- Parameters:
service
- the IdentityService associated with this Login Service.
-
logout
- Specified by:
logout
in interfaceLoginService
-