Class JWTAuthentication
java.lang.Object
com.erudika.para.server.security.UserAuthentication
com.erudika.para.server.security.JWTAuthentication
- All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication
Represents a user authentication with JWT.
- Author:
- Alex Bogdanovski [[email protected]]
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication
org.springframework.security.core.Authentication.Builder<B> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class UserAuthentication
getAuthorities, getCredentials, getDetails, getName, getPrincipal, isAuthenticated, setAuthenticatedMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
toBuilder
-
Constructor Details
-
JWTAuthentication
Default constructor.- Parameters:
principal- a user object
-
-
Method Details
-
withJWT
getter/setter.- Parameters:
jwt- token- Returns:
- this
-
withApp
getter/setter.- Parameters:
app-App- Returns:
- this
-
getJwt
public com.nimbusds.jwt.SignedJWT getJwt()getter/setter.- Returns:
- the JWT token
-
getApp
public com.erudika.para.core.App getApp()getter/setter.- Returns:
- the
App
-