public OnAuth.Identity
Identity data associated to an authenticated user.
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getAccessToken()
Gets the OAuth access token attached to this
instance when available. This piece of information is available only when authenticating using OAuth2 login. |
(package private) java.util.List<com.orange.webcom.sdk.OnAuth.Identity.Context> |
getContext() |
(package private) java.util.Date |
getCreatedAt()
Gets the creation date of the webcom user account attached to this
instance. |
(package private) java.lang.String |
getDisplayName()
Gets the display name attached to this
instance when available. Its availability depends on the identity provider that forged this instance. |
(package private) java.lang.String |
getEmail()
Gets the email address attached to this
instance when available. Its availability depends on the identity provider that forged this instance. The email is always available when authenticating with email/password. The email may be available when authenticating with an OAuth2 provider. |
(package private) java.util.Date |
getExpires()
Gets the expiration date of the authentication token attached to this
instance when available. Note that it may be missing, typically in return of the method, which doesn't authenticate the user. |
(package private) JSONValue |
getJSONProviderProfile()
Gets the provider profile data of this
instance as a . It is null if no provider profile is attached to this instance. |
(package private) java.lang.String |
getProvider()
Gets the identifier of the identity provider that forged this
instance. The returned value closely depends on the used authentication method: Anonymous login: anonymous Email/password login: password OAuth2 login: google , facebook , orange ... Mobile Connect login: mobileconnect OIDC login: oidc. Implicit login: wassup Custom login: custom. |
(package private) java.lang.Object |
getProviderProfile()
Deprecated.
|
(package private) java.lang.String |
getProviderUid()
Gets the unique identifier attributed by the identity provider that forged this
instance. The returned value is specific to each identity provider and is not guaranteed to be unique across them. If you need a unique user identifier, used . |
(package private) java.lang.String |
getUid()
Gets the unique identifier of the webcom user account attached to this
instance. |
(package private) java.lang.String |
getWebcomAuthToken()
Gets the Webcom authentication token attached to this
instance when available. Note that it may be missing, typically in return of the method, which doesn't authenticate the user. |
@NonNull java.lang.String getUid()
Gets the unique identifier of the webcom user account attached to this
instance.interface OnAuth.Identity
interface OnAuth.Identity
instanceinterface OnAuth.Identity
@NonNull java.lang.String getProvider()
Gets the identifier of the identity provider that forged this
instance. The returned value closely depends on the used authentication method: interface OnAuth.Identity
anonymous
password
google
, facebook
, orange
...mobileconnect
oidc.
wassup
custom.
interface OnAuth.Identity
instanceinterface OnAuth.Identity
@NonNull java.lang.String getProviderUid()
Gets the unique identifier attributed by the identity provider that forged this
instance. The returned value is specific to each identity provider and is not guaranteed to be unique across them. If you need a unique user identifier, used interface OnAuth.Identity
.com.orange.webcom.sdk.OnAuth.Identity$getUid()
interface OnAuth.Identity
instanceinterface OnAuth.Identity
,
com.orange.webcom.sdk.OnAuth.Identity$getUid()
@NonNull java.util.Date getCreatedAt()
Gets the creation date of the webcom user account attached to this
instance.interface OnAuth.Identity
interface OnAuth.Identity
instanceinterface OnAuth.Identity
@Nullable java.util.Date getExpires()
Gets the expiration date of the authentication token attached to this
instance when available. Note that it may be missing, typically in return of the interface OnAuth.Identity
method, which doesn't authenticate the user.com.orange.webcom.sdk.Webcom$addIdentity(java.lang.String,com.orange.webcom.sdk.AuthDetails,com.orange.webcom.sdk.OnAuth)
interface OnAuth.Identity
instance or null
if not availableinterface OnAuth.Identity
,
com.orange.webcom.sdk.Webcom$addIdentity(java.lang.String,com.orange.webcom.sdk.AuthDetails,com.orange.webcom.sdk.OnAuth)
@Nullable java.lang.String getEmail()
Gets the email address attached to this
instance when available. Its availability depends on the identity provider that forged this interface OnAuth.Identity
instance. The email is always available when authenticating with email/password. The email may be available when authenticating with an OAuth2 provider.interface OnAuth.Identity
interface OnAuth.Identity
instance or null
if not availableinterface OnAuth.Identity
,
interface OnAuth.Identity
@Nullable java.lang.String getDisplayName()
Gets the display name attached to this
instance when available. Its availability depends on the identity provider that forged this interface OnAuth.Identity
instance.interface OnAuth.Identity
interface OnAuth.Identity
instance or null
if not availableinterface OnAuth.Identity
,
interface OnAuth.Identity
@Nullable java.lang.String getAccessToken()
Gets the OAuth access token attached to this
instance when available. This piece of information is available only when authenticating using OAuth2 login.interface OnAuth.Identity
interface OnAuth.Identity
instance or null
if not availableinterface OnAuth.Identity
@Nullable java.lang.String getWebcomAuthToken()
Gets the Webcom authentication token attached to this
instance when available. Note that it may be missing, typically in return of the interface OnAuth.Identity
method, which doesn't authenticate the user.com.orange.webcom.sdk.Webcom$addIdentity(java.lang.String,com.orange.webcom.sdk.AuthDetails,com.orange.webcom.sdk.OnAuth)
interface OnAuth.Identity
instance or null
if not availableinterface OnAuth.Identity
,
com.orange.webcom.sdk.Webcom$addIdentity(java.lang.String,com.orange.webcom.sdk.AuthDetails,com.orange.webcom.sdk.OnAuth)
@Nullable java.lang.Object getProviderProfile()
Gets the provider profile data of this
instance as a interface OnAuth.Identity
. It is interface JSONValue
null
if either no provider profile is attached to this instance or it is not a regular JSON object.
interface OnAuth.Identity
instanceinterface OnAuth.Identity
,
interface JSONValue
@Nullable JSONValue getJSONProviderProfile()
Gets the provider profile data of this
instance as a interface OnAuth.Identity
. It is interface JSONValue
null
if no provider profile is attached to this instance.
interface OnAuth.Identity
instanceinterface OnAuth.Identity
,
interface JSONValue
java.util.List<com.orange.webcom.sdk.OnAuth.Identity.Context> getContext()