Klasse GUIAuthenticationToken

java.lang.Object
de.dlr.proseo.ui.gui.GUIAuthenticationToken
Alle implementierten Schnittstellen:
Serializable, Principal, org.springframework.security.core.Authentication

public class GUIAuthenticationToken extends Object implements org.springframework.security.core.Authentication
Represents a token for an authentication within a Graphical User Interface. It holds the credentials, principal details and other related data like roles, mission, etc. This class is used for authenticating a user within a GUI-based application.
Autor:
David Mazo
Siehe auch:
  • Konstruktordetails

    • GUIAuthenticationToken

      public GUIAuthenticationToken()
  • Methodendetails

    • getDataCache

      public DataCache getDataCache()
      Returns the data cache.
      Gibt zurück:
      the dataCache
    • setDataCache

      public void setDataCache(DataCache dataCache)
      Sets the data cache.
      Parameter:
      dataCache - the dataCache to set
    • getUserRoles

      public List<String> getUserRoles()
      Returns the list of user roles.
      Gibt zurück:
      the userRoles
    • setUserRoles

      public void setUserRoles(List<String> userRoles)
      Sets the list of user roles.
      Parameter:
      userRoles - the userRoles to set
    • isNewLogin

      public boolean isNewLogin()
      Returns whether it's a new login or not.
      Gibt zurück:
      the isNewLogin
    • setNewLogin

      public void setNewLogin(boolean isNewLogin)
      Sets the new login flag.
      Parameter:
      isNewLogin - true if the login is new
    • getName

      public String getName()
      Returns the username of the principal.
      Angegeben von:
      getName in Schnittstelle Principal
    • getPassword

      public String getPassword()
      Return the password of the principal
      Gibt zurück:
      The password of the principal
    • getProseoName

      public String getProseoName()
      Returns the combined prosEO user name, which is a concatenation of mission name and username.
      Gibt zurück:
      The prosEO user name
    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Returns the granted authorities, which are roles or permissions for the user.
      Angegeben von:
      getAuthorities in Schnittstelle org.springframework.security.core.Authentication
    • getCredentials

      public Object getCredentials()
      Returns the credentials, usually the password.
      Angegeben von:
      getCredentials in Schnittstelle org.springframework.security.core.Authentication
    • setCredentials

      public void setCredentials(Object credentials)
      Sets the credentials.
      Parameter:
      credentials - the user credentials
    • getDetails

      public Object getDetails()
      Returns additional details, in this case, the mission.
      Angegeben von:
      getDetails in Schnittstelle org.springframework.security.core.Authentication
    • setDetails

      public void setDetails(String mission)
      Sets the mission details.
      Parameter:
      mission - the mission to which the user is logged in
    • getMission

      public String getMission()
      Return the mission of the user
      Gibt zurück:
      The mission to which the user is logged in
    • getPrincipal

      public Object getPrincipal()
      Returns the principal, which represents the user's details.
      Angegeben von:
      getPrincipal in Schnittstelle org.springframework.security.core.Authentication
    • setPrincipal

      public void setPrincipal(org.springframework.security.core.userdetails.UserDetails principal)
      Sets the principal, which represents the user's details.
      Parameter:
      principal - the user details
    • isAuthenticated

      public boolean isAuthenticated()
      Returns whether the user is authenticated.
      Angegeben von:
      isAuthenticated in Schnittstelle org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
      Sets the authenticated flag.
      Angegeben von:
      setAuthenticated in Schnittstelle org.springframework.security.core.Authentication
      Parameter:
      isAuthenticated - true if the user is authenticated
      Löst aus:
      IllegalArgumentException