Class EasyCodef
java.lang.Object
io.codef.api.EasyCodef
io.codef.easycodef |_ EasyCodef.javaDesc : 코드에프의 쉬운 사용을 위한 유틸 라이브러리 클래스
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:28:31 PM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAccount
(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) Desc : 계정 정보 추가createAccount
(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) Desc : connectedId 발급을 위한 계정 등록deleteAccount
(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) Desc : 계정 정보 삭제getAccountList
(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) Desc : connectedId로 등록된 계정 목록 조회getConnectedIdList
(EasyCodefServiceType serviceType) Desc : 클라이언트 정보로 등록된 모든 connectedId 목록 조회Desc : RSA암호화를 위한 퍼블릭키 반환requestCertification
(String productUrl, EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) Desc : 상품 추가인증 요청requestNewToken
(EasyCodefServiceType serviceType) Desc : 토큰 신규 발급 후 반환(코드에프 이용 중 추가 업무 사용을 하는 등 토큰 권한 변경이 필요하거나 신규 토큰이 필요한 경우시 사용)requestProduct
(String productUrl, EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) Desc : 상품 요청requestToken
(EasyCodefServiceType serviceType) Desc : 토큰 반환 요청 - 보유 중인 유효한 토큰이 있는 경우 반환, 없는 경우 신규 발급 후 반환void
setClientInfo
(String clientId, String clientSecret) Desc : 정식서버 사용을 위한 클라이언트 정보 설정void
setClientInfoForDemo
(String demoClientId, String demoClientSecret) Desc : 데모서버 사용을 위한 클라이언트 정보 설정void
setPublicKey
(String publicKey) Desc : RSA암호화를 위한 퍼블릭키 설정updateAccount
(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) Desc : 계정 정보 수정
-
Constructor Details
-
EasyCodef
public EasyCodef()
-
-
Method Details
-
setClientInfo
Desc : 정식서버 사용을 위한 클라이언트 정보 설정- Parameters:
clientId
-clientSecret
-- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:30:59 PM
-
setClientInfoForDemo
Desc : 데모서버 사용을 위한 클라이언트 정보 설정- Parameters:
demoClientId
-demoClientSecret
-- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:31:12 PM
-
setPublicKey
Desc : RSA암호화를 위한 퍼블릭키 설정- Parameters:
publicKey
-- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:31:24 PM
-
getPublicKey
Desc : RSA암호화를 위한 퍼블릭키 반환- Returns:
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:32:25 PM
-
requestProduct
public String requestProduct(String productUrl, EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedExceptionDesc : 상품 요청- Parameters:
productUrl
-serviceType
-parameterMap
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:32:31 PM
-
requestCertification
public String requestCertification(String productUrl, EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedExceptionDesc : 상품 추가인증 요청- Parameters:
productUrl
-serviceType
-parameterMap
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:32:41 PM
-
createAccount
public String createAccount(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedExceptionDesc : connectedId 발급을 위한 계정 등록- Parameters:
serviceType
-parameterMap
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:34:02 PM
-
addAccount
public String addAccount(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedExceptionDesc : 계정 정보 추가- Parameters:
serviceType
-parameterMap
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:34:11 PM
-
updateAccount
public String updateAccount(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedExceptionDesc : 계정 정보 수정- Parameters:
serviceType
-parameterMap
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:34:21 PM
-
deleteAccount
public String deleteAccount(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedExceptionDesc : 계정 정보 삭제- Parameters:
serviceType
-parameterMap
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:34:30 PM
-
getAccountList
public String getAccountList(EasyCodefServiceType serviceType, HashMap<String, Object> parameterMap) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedExceptionDesc : connectedId로 등록된 계정 목록 조회- Parameters:
serviceType
-parameterMap
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:34:37 PM
-
getConnectedIdList
public String getConnectedIdList(EasyCodefServiceType serviceType) throws UnsupportedEncodingException, com.fasterxml.jackson.core.JsonProcessingException, InterruptedException Desc : 클라이언트 정보로 등록된 모든 connectedId 목록 조회- Parameters:
serviceType
-- Returns:
- Throws:
UnsupportedEncodingException
com.fasterxml.jackson.core.JsonProcessingException
InterruptedException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:34:44 PM
-
requestToken
public String requestToken(EasyCodefServiceType serviceType) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException Desc : 토큰 반환 요청 - 보유 중인 유효한 토큰이 있는 경우 반환, 없는 경우 신규 발급 후 반환- Parameters:
serviceType
-- Returns:
- Throws:
IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Jun 26, 2020 3:35:03 PM
-
requestNewToken
public String requestNewToken(EasyCodefServiceType serviceType) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException Desc : 토큰 신규 발급 후 반환(코드에프 이용 중 추가 업무 사용을 하는 등 토큰 권한 변경이 필요하거나 신규 토큰이 필요한 경우시 사용)- Parameters:
serviceType
-- Returns:
- Throws:
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
- Company:
- : ©CODEF corp.
- Author:
- : [email protected]
- Date:
- : Sep 16, 2020 11:58:32 AM
-