public class OidcProfile extends CommonProfile implements Externalizable
This class is the user profile for sites using OpenID Connect protocol.
It is returned by the OidcClient
.
USERNAME
logger, SEPARATOR
Constructor and Description |
---|
OidcProfile() |
OidcProfile(com.nimbusds.oauth2.sdk.token.BearerAccessToken accessToken) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes any sensitive or unnecessary information held in the object.
|
com.nimbusds.oauth2.sdk.token.BearerAccessToken |
getAccessToken() |
com.nimbusds.jwt.JWT |
getIdToken() |
String |
getIdTokenString() |
void |
readExternal(ObjectInput in) |
void |
setIdTokenString(String idTokenString) |
void |
writeExternal(ObjectOutput out) |
getDisplayName, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, getPictureUrl, getProfileUrl, getUsername
addAttribute, addAttributes, addPermission, addPermissions, addRole, addRoles, build, getAttribute, getAttribute, getAttributes, getAttributesDefinition, getId, getPermissions, getRoles, getTypedId, isRemembered, setId, setRemembered, toString
public OidcProfile()
public OidcProfile(com.nimbusds.oauth2.sdk.token.BearerAccessToken accessToken)
public com.nimbusds.oauth2.sdk.token.BearerAccessToken getAccessToken()
public String getIdTokenString()
public void setIdTokenString(String idTokenString)
public com.nimbusds.jwt.JWT getIdToken() throws ParseException
ParseException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class UserProfile
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class UserProfile
IOException
ClassNotFoundException
public void clear()
Clearable
clear
in interface Clearable
clear
in class UserProfile
Copyright © 2016. All rights reserved.