Class JwtAuthentication

java.lang.Object
org.example.crmedu.infrastructure.auth.jwt.JwtAuthentication
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication

public class JwtAuthentication extends Object implements org.springframework.security.core.Authentication
Represents an authentication object for JWT-based security.
See Also:
  • Constructor Details

    • JwtAuthentication

      public JwtAuthentication()
  • Method Details

    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.Authentication
    • getCredentials

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

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

      public Object 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
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class Object