public class TokensApi extends BaseApi implements LoginAppClientAuthorizable
Constructor and Description |
---|
TokensApi() |
Modifier and Type | Method and Description |
---|---|
LoginAppAccessToken |
clientCredentials(ClientCredentialsAccessTokenAttributes clientCredentialsAccessTokenAttributes)
Generates a new Login App Token.
|
LoginAppClientAuthorization |
getLoginAppClientAuthorization() |
UserAccessToken |
password(PasswordAccessTokenAttributes passwordAccessTokenAttributes)
Generates a new Login User Token given a combination of username/email_address and password.
|
UserAccessToken |
providerCredentials(ProviderCredentialsAccessTokenAttributes providerCredentialsAccessTokenAttributes)
Generates a new Login User Token given an oauth token issued by an external provider.
|
UserAccessToken |
refresh(RefreshTokenAttributes refreshTokenAttributes)
Refreshes an access token, generating a new one.
|
TokensApi |
setLoginAppClientAuthorization(LoginAppClientAuthorization loginAppClientAuthorization) |
collectionUrl, getApi, memberUrl, memberUrl, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public UserAccessToken password(PasswordAccessTokenAttributes passwordAccessTokenAttributes) throws java.io.IOException, SocialIdApiException
passwordAccessTokenAttributes
- Token attributesjava.io.IOException
SocialIdApiException
public UserAccessToken providerCredentials(ProviderCredentialsAccessTokenAttributes providerCredentialsAccessTokenAttributes) throws java.io.IOException, SocialIdApiException
providerCredentialsAccessTokenAttributes
- Token attributesjava.io.IOException
SocialIdApiException
public LoginAppAccessToken clientCredentials(ClientCredentialsAccessTokenAttributes clientCredentialsAccessTokenAttributes) throws java.io.IOException, SocialIdApiException
clientCredentialsAccessTokenAttributes
- Token attributesjava.io.IOException
SocialIdApiException
public UserAccessToken refresh(RefreshTokenAttributes refreshTokenAttributes) throws java.io.IOException, SocialIdApiException
refreshTokenAttributes
- Token attributesjava.io.IOException
SocialIdApiException
public LoginAppClientAuthorization getLoginAppClientAuthorization()
getLoginAppClientAuthorization
in interface LoginAppClientAuthorizable
public TokensApi setLoginAppClientAuthorization(LoginAppClientAuthorization loginAppClientAuthorization)