@JsonIgnore
    public boolean isExpired() {
        var tokenExpirationAdvance = getTokenExpirationAdvance();
        if (tokenExpirationAdvance < 0) {
            return false;
        }
        var expiration = getExpiration();
        return expiration != null
            && expiration.toInstant().isBefore(Instant.now().plusSeconds(tokenExpirationAdvance));
    }
<p>This class is the user profile for sites using OpenID Connect protocol.</p>
<p>It is returned by the {@link org.pac4j.oidc.client.OidcClient}.</p>

@author Michael Remond
@version 1.7.0
pac4j-oidc/src/main/java/org/pac4j/oidc/profile/OidcProfile.java