Package api.exchange.module
Class AuthApi
java.lang.Object
api.exchange.module.AuthApi
- Direct Known Subclasses:
AccountsApi,OrdersApi
인증 API 클래스
- Since:
- 2021.11.30 Tue 13:44:38
- Author:
- RWB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String인증 토큰 반환 메서드protected StringgetAuthToken(String query)인증 토큰 반환 메서드protected StringgetAuthToken(HashMap<String,String> params)인증 토큰 반환 메서드
-
Constructor Details
-
AuthApi
생성자 메서드- Parameters:
api- : [String] API 키secret- : [String] API Secret 키
-
-
Method Details
-
getAuthToken
인증 토큰 반환 메서드- Returns:
- [String] 인증 토큰
-
getAuthToken
protected String getAuthToken(HashMap<String,String> params) throws NoSuchAlgorithmException, UnsupportedEncodingException인증 토큰 반환 메서드- Parameters:
params- : [HashMap] 파라미터- Returns:
- [String] 인증 토큰
- Throws:
NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외UnsupportedEncodingException- 지원하지 않는 인코딩 예외
-
getAuthToken
protected String getAuthToken(String query) throws NoSuchAlgorithmException, UnsupportedEncodingException인증 토큰 반환 메서드- Parameters:
query- : [String] 쿼리 문자열- Returns:
- [String] 인증 토큰
- Throws:
NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외UnsupportedEncodingException- 지원하지 않는 인코딩 예외
-