public interface XSUserInfo
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkLocalScope(String scope)
Check if a local scope is available in the authentication token
|
boolean |
checkScope(String scope)
Check if a scope is present in the authentication token
|
String |
getAdditionalAuthAttribute(String attributeName)
Return additional authentication attributes included by the OAuth client
component.
|
String |
getAppToken()
Return authentication token
|
String[] |
getAttribute(String attributeName)
Return user attributes
|
String |
getClientId()
Return the client id of the authentication token
|
String |
getCloneServiceInstanceId()
In case of xsuaa broker plan tokens, it contains the service instance id
|
String |
getDBToken()
Deprecated.
|
String |
getEmail()
Return the email of the user
|
String |
getFamilyName()
Familiy name of the user.
|
String |
getGivenName()
Given name of the user.
|
String |
getGrantType()
OAuth Grant Type used for this token
|
String |
getHdbToken() |
String |
getIdentityZone()
Return identity zone
|
String |
getJsonValue(String attribute)
Deprecated.
|
String |
getLogonName()
User name used for authentication, e.g.
|
String |
getOrigin()
Return the user origin.
|
String |
getSubaccountId()
Return subaccount identifier
|
String |
getSubdomain()
Return the subdomain of this subaccount
|
String[] |
getSystemAttribute(String attributeName)
Deprecated.
|
String |
getToken(String namespace,
String name)
Deprecated.
|
boolean |
hasAttributes()
Check if the authentication token contains user attributes
|
boolean |
isInForeignMode()
Check if a token issued for another OAuth client has been forwarded to a
different client,
|
String |
requestToken(XSTokenRequest tokenRequest)
Exchange a token into a token from another service instance
|
String |
requestTokenForClient(String clientId,
String clientSecret,
String uaaUrl)
Deprecated.
|
String getLogonName() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getGivenName() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getFamilyName() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getOrigin() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getIdentityZone() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getSubaccountId() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getSubdomain() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getClientId() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication token@Deprecated String getJsonValue(String attribute) throws XSUserInfoException
XSUserInfoExceptionString getEmail() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication token@Deprecated String getDBToken() throws XSUserInfoException
XSUserInfoExceptionString getHdbToken() throws XSUserInfoException
XSUserInfoExceptionString getAppToken()
@Deprecated String getToken(String namespace, String name) throws XSUserInfoException
XSUserInfoExceptionString[] getAttribute(String attributeName) throws XSUserInfoException
attributeName - name of attributeXSUserInfoException - if attribute is not available in the authentication tokenboolean hasAttributes()
throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication token@Deprecated String[] getSystemAttribute(String attributeName) throws XSUserInfoException
XSUserInfoExceptionboolean checkScope(String scope) throws XSUserInfoException
scope - name of fully qualified scopeXSUserInfoException - if attribute is not available in the authentication tokenboolean checkLocalScope(String scope) throws XSUserInfoException
scope - name of local scope (ommitting the xsappid)XSUserInfoException - if attribute is not available in the authentication tokenString getAdditionalAuthAttribute(String attributeName) throws XSUserInfoException
attributeName - name of the authentication attributeXSUserInfoException - if attribute is not available in the authentication tokenString getCloneServiceInstanceId() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenString getGrantType() throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication tokenboolean isInForeignMode()
throws XSUserInfoException
XSUserInfoException - if attribute is not available in the authentication token@Deprecated String requestTokenForClient(String clientId, String clientSecret, String uaaUrl) throws XSUserInfoException
XSUserInfoExceptionString requestToken(XSTokenRequest tokenRequest) throws XSUserInfoException
tokenRequest - request dataXSUserInfoException - if attribute is not available in the authentication tokenCopyright © 2019. All rights reserved.