Package org.pac4j.oidc.profile
Class OidcProfile
java.lang.Object
org.pac4j.core.profile.BasicUserProfile
org.pac4j.core.profile.CommonProfile
org.pac4j.core.profile.jwt.AbstractJwtProfile
org.pac4j.oidc.profile.OidcProfile
- All Implemented Interfaces:
Externalizable
,Serializable
,org.pac4j.core.profile.UserProfile
- Direct Known Subclasses:
AppleProfile
,AzureAdProfile
,GoogleOidcProfile
,KeycloakOidcProfile
public class OidcProfile
extends org.pac4j.core.profile.jwt.AbstractJwtProfile
This class is the user profile for sites using OpenID Connect protocol.
It is returned by the OidcClient
.
- Version:
- 1.7.0
- Author:
- Michael Remond
- See Also:
-
Field Summary
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.token.AccessToken
getAcr()
getAmr()
getAzp()
com.nimbusds.jwt.JWT
getNonce()
com.nimbusds.oauth2.sdk.token.RefreshToken
int
boolean
void
void
setAccessToken
(com.nimbusds.oauth2.sdk.token.AccessToken accessToken) void
setExpiration
(Date expiration) void
setIdTokenString
(String idToken) void
setRefreshToken
(com.nimbusds.oauth2.sdk.token.RefreshToken refreshToken) void
setTokenExpirationAdvance
(int tokenExpirationAdvance) Methods inherited from class org.pac4j.core.profile.jwt.AbstractJwtProfile
getAudience, getExpirationDate, getIssuedAt, getIssuer, getNotBefore, getSubject, toString
Methods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getAttributeAsString, getAttributeAsType, getEmail, getFamilyName, getGender, getLocale
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addRole, addRoles, asPrincipal, build, build, containsAttribute, containsAuthenicationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setRemembered, setRoles, writeExternal
-
Constructor Details
-
OidcProfile
public OidcProfile()
-
-
Method Details
-
getFirstName
- Overrides:
getFirstName
in classorg.pac4j.core.profile.CommonProfile
-
getMiddleName
-
getDisplayName
- Overrides:
getDisplayName
in classorg.pac4j.core.profile.CommonProfile
-
getNickname
-
getUsername
- Specified by:
getUsername
in interfaceorg.pac4j.core.profile.UserProfile
- Overrides:
getUsername
in classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
- Overrides:
getPictureUrl
in classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
- Overrides:
getProfileUrl
in classorg.pac4j.core.profile.CommonProfile
-
getLocation
- Overrides:
getLocation
in classorg.pac4j.core.profile.CommonProfile
-
getEmailVerified
-
getPhoneNumber
-
getPhoneNumberVerified
-
getUpdatedAt
-
getAuthTime
-
getNonce
-
getAcr
-
getAmr
-
getAzp
-
setAccessToken
public void setAccessToken(com.nimbusds.oauth2.sdk.token.AccessToken accessToken) -
getAccessToken
public com.nimbusds.oauth2.sdk.token.AccessToken getAccessToken() -
getIdTokenString
-
setIdTokenString
-
getIdToken
public com.nimbusds.jwt.JWT getIdToken() -
getRefreshToken
public com.nimbusds.oauth2.sdk.token.RefreshToken getRefreshToken() -
setRefreshToken
public void setRefreshToken(com.nimbusds.oauth2.sdk.token.RefreshToken refreshToken) -
removeLoginData
public void removeLoginData()- Overrides:
removeLoginData
in classorg.pac4j.core.profile.BasicUserProfile
-
getTokenExpirationAdvance
public int getTokenExpirationAdvance() -
setTokenExpirationAdvance
public void setTokenExpirationAdvance(int tokenExpirationAdvance) -
getExpiration
-
setExpiration
-
isExpired
public boolean isExpired()- Specified by:
isExpired
in interfaceorg.pac4j.core.profile.UserProfile
- Overrides:
isExpired
in classorg.pac4j.core.profile.CommonProfile
-