public class AuthService extends Object
Modifier and Type | Field and Description |
---|---|
private Credentials |
credentials |
private Transport |
transport |
private URL |
url |
Constructor and Description |
---|
AuthService() |
AuthService(URL url,
Credentials credentials,
Transport transport) |
Modifier and Type | Method and Description |
---|---|
AuthInfo |
getAuth()
Gets user info and list with connected sellers to the user in credentials.
|
HandshakeReply |
handshake()
This method is very useful to check authentication.
|
private URL url
private Credentials credentials
private Transport transport
public AuthService()
public AuthService(URL url, Credentials credentials, Transport transport)
public HandshakeReply handshake()
HandshakeReply
indicates whether request version is outdated.ForbiddenJsonException
- see: ForbiddenErrorType.SELLER_NOT_FOUND
public AuthInfo getAuth()
AuthInfo
ForbiddenJsonException
- see:
ForbiddenErrorType.INSUFFICIENT_ACCESS_RIGHTS
AuthServiceSample
Copyright © 2016. All rights reserved.