The Login service provides an abstract mechanism for an Authenticator
to check credentials and to create a UserIdentity using the
set IdentityService.
| Modifier and Type | Method and Description |
|---|---|
| public IdentityService | Returns: the IdentityService associated with this Login Service.Get the IdentityService associated with this Login Service. |
| public String | |
| public default UserIdentity | Returns: AUserIdentity or null.The subject subject, Principal the userPrincipal userPrincipal, boolean If true, the create)getIdentityService() may be used to create a new UserIdentity.Get or create a |
| public UserIdentity | |
| public void | |
| public void | setIdentityService(IdentityService
the IdentityService associated with this Login Service. service)Set the IdentityService associated with this Login Service. |
| public boolean | Returns: true if authentication has not been revoked for the user.The user to validate user)Validate a user identity. |
| getIdentityService | back to summary |
|---|---|
| public IdentityService getIdentityService() Get the IdentityService associated with this Login Service.
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| getUserIdentity | back to summary |
|---|---|
| public default UserIdentity getUserIdentity(Subject subject, Principal userPrincipal, boolean create) Get or create a
| |
| login | back to summary |
|---|---|
| public UserIdentity login(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) Login a user. | |
| logout | back to summary |
|---|---|
| public void logout(UserIdentity user) | |
| setIdentityService | back to summary |
|---|---|
| public void setIdentityService(IdentityService service) Set the IdentityService associated with this Login Service.
| |
| validate | back to summary |
|---|---|
| public boolean validate(UserIdentity user) Validate a user identity.
Validate that a UserIdentity previously created by a call
to
| |