com.evernote.clients
Class UserStoreClient
java.lang.Object
com.evernote.clients.UserStoreClient
public class UserStoreClient
- extends Object
A wrapper for UserStore.Client
- Author:
- kentaro suzuki
|
Method Summary |
AuthenticationResult |
authenticate(String username,
String password,
String consumerKey,
String consumerSecret,
boolean supportsTwoFactor)
|
AuthenticationResult |
authenticateLongSession(String username,
String password,
String consumerKey,
String consumerSecret,
String deviceIdentifier,
String deviceDescription,
boolean supportsTwoFactor)
|
AuthenticationResult |
authenticateToBusiness()
|
boolean |
checkVersion(String clientName,
short edamVersionMajor,
short edamVersionMinor)
|
void |
completeTwoFactorAuthentication(String authenticationToken,
String oneTimeCode,
String deviceIdentifier,
String deviceDescription)
|
BootstrapInfo |
getBootstrapInfo(String locale)
|
String |
getNoteStoreUrl()
|
PremiumInfo |
getPremiumInfo()
|
PublicUserInfo |
getPublicUserInfo(String username)
|
User |
getUser()
|
boolean |
isBusinessUser()
Determine if a user belongs to a business account |
AuthenticationResult |
refreshAuthentication()
|
void |
revokeLongSession()
|
isBusinessUser
public boolean isBusinessUser()
throws TException,
EDAMUserException,
EDAMSystemException
- Determine if a user belongs to a business account
- Returns:
- the result of a user belonging to a business account
- Throws:
TException
EDAMUserException
EDAMSystemException
checkVersion
public boolean checkVersion(String clientName,
short edamVersionMajor,
short edamVersionMinor)
throws TException
- Throws:
TException- See Also:
UserStore.Client#checkVersion(String, short, short)
getBootstrapInfo
public BootstrapInfo getBootstrapInfo(String locale)
throws TException
- Throws:
TException- See Also:
UserStore.Client#getBootstrapInfo(String)
authenticate
public AuthenticationResult authenticate(String username,
String password,
String consumerKey,
String consumerSecret,
boolean supportsTwoFactor)
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#authenticate(String, String, String, String, boolean)
authenticateLongSession
public AuthenticationResult authenticateLongSession(String username,
String password,
String consumerKey,
String consumerSecret,
String deviceIdentifier,
String deviceDescription,
boolean supportsTwoFactor)
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#authenticateLongSession(String, String, String,
String, String, String, boolean)
authenticateToBusiness
public AuthenticationResult authenticateToBusiness()
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#authenticateToBusiness(String)
refreshAuthentication
public AuthenticationResult refreshAuthentication()
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#refreshAuthentication(String)
getUser
public User getUser()
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#getUser(String)
getPublicUserInfo
public PublicUserInfo getPublicUserInfo(String username)
throws EDAMNotFoundException,
EDAMSystemException,
EDAMUserException,
TException
- Throws:
EDAMNotFoundException
EDAMSystemException
EDAMUserException
TException- See Also:
UserStore.Client#getPublicUserInfo(String)
getPremiumInfo
public PremiumInfo getPremiumInfo()
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#getPremiumInfo(String)
getNoteStoreUrl
public String getNoteStoreUrl()
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#getNoteStoreUrl(String)
revokeLongSession
public void revokeLongSession()
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#revokeLongSession(String)
completeTwoFactorAuthentication
public void completeTwoFactorAuthentication(String authenticationToken,
String oneTimeCode,
String deviceIdentifier,
String deviceDescription)
throws EDAMUserException,
EDAMSystemException,
TException
- Throws:
EDAMUserException
EDAMSystemException
TException- See Also:
UserStore.Client#completeTwoFactorAuthentication(String, String,
String, String)
Copyright © 2013. All Rights Reserved.