Package org.pac4j.oauth.profile.twitter
Class TwitterProfile
- java.lang.Object
-
- org.pac4j.core.profile.BasicUserProfile
-
- org.pac4j.core.profile.CommonProfile
-
- org.pac4j.oauth.profile.OAuth20Profile
-
- org.pac4j.oauth.profile.OAuth10Profile
-
- org.pac4j.oauth.profile.twitter.TwitterProfile
-
- All Implemented Interfaces:
Externalizable
,Serializable
,UserProfile
public class TwitterProfile extends OAuth10Profile
This class is the user profile for Twitter with appropriate getters.
It is returned by the
TwitterClient
.- Since:
- 1.1.0
- Author:
- Jerome Leleu
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger, SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description TwitterProfile()
-
Method Summary
-
Methods inherited from class org.pac4j.oauth.profile.OAuth10Profile
getAccessSecret, removeLoginData, setAccessSecret
-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, setAccessToken
-
Methods inherited from class org.pac4j.core.profile.CommonProfile
getEmail, getFamilyName, getFirstName, getGender, getLocation, isExpired
-
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addPermission, addPermissions, addRole, addRoles, build, build, containsAttribute, containsAuthenicationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setPermissions, setRemembered, setRoles, toString, writeExternal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pac4j.core.profile.UserProfile
asPrincipal
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classCommonProfile
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceUserProfile
- Overrides:
getUsername
in classCommonProfile
-
getLocale
public Locale getLocale()
- Overrides:
getLocale
in classCommonProfile
-
getPictureUrl
public URI getPictureUrl()
- Overrides:
getPictureUrl
in classCommonProfile
-
getProfileUrl
public URI getProfileUrl()
- Overrides:
getProfileUrl
in classCommonProfile
-
getContributorsEnabled
public Boolean getContributorsEnabled()
-
getCreatedAt
public Date getCreatedAt()
-
getDefaultProfile
public Boolean getDefaultProfile()
-
getDefaultProfileImage
public Boolean getDefaultProfileImage()
-
getDescription
public String getDescription()
-
getFavouritesCount
public Integer getFavouritesCount()
-
getFollowRequestSent
public Boolean getFollowRequestSent()
-
getFollowersCount
public Integer getFollowersCount()
-
getFollowing
public Boolean getFollowing()
-
getFriendsCount
public Integer getFriendsCount()
-
getGeoEnabled
public Boolean getGeoEnabled()
-
getIsTranslator
public Boolean getIsTranslator()
-
getListedCount
public Integer getListedCount()
-
getNotifications
public Boolean getNotifications()
-
getProfileBackgroundColor
public Color getProfileBackgroundColor()
-
getProfileBackgroundImageUrl
public URI getProfileBackgroundImageUrl()
-
getProfileBackgroundImageUrlHttps
public URI getProfileBackgroundImageUrlHttps()
-
getProfileBackgroundTile
public Boolean getProfileBackgroundTile()
-
getProfileImageUrlHttps
public URI getProfileImageUrlHttps()
-
getProfileLinkColor
public Color getProfileLinkColor()
-
getProfileSidebarBorderColor
public Color getProfileSidebarBorderColor()
-
getProfileSidebarFillColor
public Color getProfileSidebarFillColor()
-
getProfileTextColor
public Color getProfileTextColor()
-
getProfileUseBackgroundImage
public Boolean getProfileUseBackgroundImage()
-
getProtected
public Boolean getProtected()
-
getShowAllInlineMedia
public Boolean getShowAllInlineMedia()
-
getStatusesCount
public Integer getStatusesCount()
-
getTimeZone
public String getTimeZone()
-
getUtcOffset
public Integer getUtcOffset()
-
getVerified
public Boolean getVerified()
-
-