Package com.qfs.security
Interface IJwtAuthentication
- All Superinterfaces:
org.springframework.security.core.Authentication,Principal,Serializable
- All Known Implementing Classes:
JwtAuthentication
public interface IJwtAuthentication
extends org.springframework.security.core.Authentication
Interface which should be used by
Authentication based on JWT so that Quartet components
can reuse the token.- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionGets the JWT that proves the principal is correct.Gets the expiration time of the token.Methods inherited from interface org.springframework.security.core.Authentication
getAuthorities, getDetails, getPrincipal, isAuthenticated, setAuthenticated
-
Method Details
-
getCredentials
Object getCredentials()Gets the JWT that proves the principal is correct.- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication- Returns:
- the token that proves the identity of the
Principal
-
getExpirationTime
Date getExpirationTime()Gets the expiration time of the token.- Returns:
- The expiration time,
nullif not specified.
-