Class JwtAuthentication

java.lang.Object
dk.acto.fafnir.client.JwtAuthentication
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.userdetails.UserDetails

public class JwtAuthentication extends Object implements org.springframework.security.core.Authentication, org.springframework.security.core.userdetails.UserDetails
See Also:
  • Constructor Details

    • JwtAuthentication

      public JwtAuthentication()
  • Method Details

    • getCredentials

      public String getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
    • getPrincipal

      public Principal getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean isAuthenticated)
      Specified by:
      setAuthenticated in interface org.springframework.security.core.Authentication
    • getName

      public String getName()
      Specified by:
      getName in interface Principal
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonExpired

      public boolean isAccountNonExpired()
      Specified by:
      isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonLocked

      public boolean isAccountNonLocked()
      Specified by:
      isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Specified by:
      isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails
    • getMetaId

      public String getMetaId()
    • hasMetaId

      public boolean hasMetaId()
    • isInOrganisation

      public boolean isInOrganisation()
    • getOrganisationId

      public String getOrganisationId()