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:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.erudika.para.server.security.UserAuthentication
getAuthorities, getCredentials, getDetails, getName, getPrincipal, isAuthenticated, setAuthenticated
-
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
-