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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Collection
<? extends org.springframework.security.core.GrantedAuthority> getName()
boolean
void
setAuthenticated
(boolean isAuthenticated) toString()
-
Constructor Details
-
JwtAuthentication
public JwtAuthentication()
-
-
Method Details
-
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.Authentication
-
getCredentials
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getDetails
- Specified by:
getDetails
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticated
in interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
public void setAuthenticated(boolean isAuthenticated) - Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
-
getName
-
equals
-
toString
-