Class LdapActor

java.lang.Object
de.gustavblass.fsu.fmi.roombooking.model.actor.Actor
de.gustavblass.fsu.fmi.roombooking.model.actor.LdapActor
All Implemented Interfaces:
Identified, Serializable, Comparable<Actor>, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

@Entity public class LdapActor extends Actor
Represents an Actor that is authenticated against an LDAP server.
See Also:
  • Field Details

  • Constructor Details

    • LdapActor

      public LdapActor()
  • Method Details

    • getTypeCode

      @Contract(pure=true) @NonNull public @NonNull String getTypeCode()
      Specified by:
      getTypeCode in class Actor
      Returns:
      The CODE.
    • password

      @Contract(pure=true) @NonNull public @NonNull Optional<String> password()
      Description copied from class: Actor
      A null-safe alternative to Actor.getPassword().
      Specified by:
      password in class Actor
      Returns:
      Always Optional.empty().
    • getPassword

      @Contract(value="-> null", pure=true) @Nullable public @Nullable String getPassword()
      Warning! This method is only meant for the Spring framework and always returns null!
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
      Specified by:
      getPassword in class Actor
    • eraseCredentials

      @Contract(pure=true) public void eraseCredentials()
      Warning! This method is only meant for the Spring framework and does nothing!