EN · DE · RU · FR · ES

#517: LoginHandler.java

projectforge-business/src/main/java/org/projectforge/business/login/LoginHandler.java Type: Java Class · Package: org.projectforge.business.login · Source: projectforge-business/src/main/java/org/projectforge/business/login/LoginHandler.java 144 lines · 25 code · 103 comments · 16 blank
Java Class implementing LoginHandler.

Annotations

@Service

Methods

ReturnMethodParameters
KaiReinhardk.reinhard@micromata.de
voidinitialize
securityreasonsdon't wait for the garbage collector to remove the * password in memory
LoginResultcheckLoginfinal String username, final char[] password
bevalidplain jdbc is used then
booleanisAdminUserfinal PFUserDO user
otherwisefalsethe user has to be redirected to * the login page
booleancheckStayLoggedInPFUserDO user
definedgroupsalso deleted groups
ListgetAllGroups
definedusersalso deleted users
ListgetAllUsers
voidafterUserGroupCacheRefreshCollection users, Collection groups
booleanhasExternalUsermanagementSystem
voidpasswordChangedPFUserDO user, char[] newPassword

Architecture Analysis

Resides in projectforge-business, the core module containing domain logic, services, and persistence. Typically annotated with @Service or @Component, managed by the Spring IoC container with dependency injection.

Git History

CommitWhat changed
868d6abb752025 -> 2026
63081666f6Source file headers: 2024-> 2025.
b6092df092Copyright 2023 -> 2024
ab45d51fa4Copyright 2001-2022 -> 2001-2023.
5f7ef41b8cCopyright 2021 -> 2022
02128a8fb7Ldap works
87a1c4cfc2Passwords (char[]) will be cleared in most backend methods due to security reasons.
0050a24d94String password -> char[] password. Not yet tested: LDAP client/master and change of Wlan-Password.
ceb63e8a1bSource code header: (C) 2001-2021.
7c79f1922cCopyright of source header -> 2020.
32f634b88fOptimize imports
dd5ca38acdCopyRight of all java file-header updated or created.
d4054ac66cPROJECTFORGE-2579 add methods to check if the WLAN password change is supported
a20488accdPROJECTFORGE-2577 add WLAN password fields to user edit, PROJECTFORGE-2579 LDAP login handler AND fix a bug where the password could be set to “******” accidently
9ebb885224Initial commit