Class LocalActor
java.lang.Object
de.gustavblass.fsu.fmi.roombooking.model.actor.Actor
de.gustavblass.fsu.fmi.roombooking.model.actor.LocalActor
- All Implemented Interfaces:
Identified, Serializable, Comparable<Actor>, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets thepasswordtonullin order to delete it from memory for security reasons.@Nullable StringWarning! This method is only meant for the Spring framework! Usepassword()instead!@NonNull Stringpassword()A null-safe alternative toActor.getPassword().Methods inherited from class Actor
compareTo, getAuthorities, getMetadata, getUsername, isAccountNonLocked, isEnabled, resetMetadata, setMetadataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Identified
getIdMethods inherited from interface org.springframework.security.core.userdetails.UserDetails
isAccountNonExpired, isCredentialsNonExpired
-
Field Details
-
CODE
-
password
Secret login credential chosen by the user and only known to them. Must be hashed before being stored in the database!- Implementation Note:
- This column is annotated as unique in order to ensure that an attacker cannot notice that two users share the same password. While this application will never generate the same hash twice (thanks to unique salts), an IT administrator might accidentally make a manual modification to the database and copy over a hash.
-
-
Constructor Details
-
LocalActor
public LocalActor()
-
-
Method Details
-
getTypeCode
- Specified by:
getTypeCodein classActor- Returns:
- The
CODE.
-
password
-
getPassword
Warning! This method is only meant for the Spring framework! Usepassword()instead!- Specified by:
getPasswordin interfaceorg.springframework.security.core.userdetails.UserDetails- Specified by:
getPasswordin classActor
-
eraseCredentials
public void eraseCredentials()Sets thepasswordtonullin order to delete it from memory for security reasons.
-