Class VerificationKeysBankApi
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.api.VerificationKeysBankApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-05-10T12:56:51.193910Z[Etc/UTC]") public class VerificationKeysBankApi extends Object
-
-
Constructor Summary
Constructors Constructor Description VerificationKeysBankApi()VerificationKeysBankApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<VerificationKeyBankModel>createVerificationKey(String bankGuid, PostVerificationKeyBankModel postVerificationKeyBankModel)Create VerificationKey Creates a verification key.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<VerificationKeyBankModel>>createVerificationKeyWithHttpInfo(String bankGuid, PostVerificationKeyBankModel postVerificationKeyBankModel)ApiClientgetApiClient()reactor.core.publisher.Mono<VerificationKeyBankModel>getVerificationKey(String bankGuid, String verificationKeyGuid)Get VerificationKey Retrieves a verification key.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<VerificationKeyBankModel>>getVerificationKeyWithHttpInfo(String bankGuid, String verificationKeyGuid)reactor.core.publisher.Mono<VerificationKeyListBankModel>listVerificationKeys(String bankGuid, BigInteger page, BigInteger perPage)Get Verification Keys list Retrieves a listing of verification keys of a bank.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<VerificationKeyListBankModel>>listVerificationKeysWithHttpInfo(String bankGuid, BigInteger page, BigInteger perPage)voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
VerificationKeysBankApi
public VerificationKeysBankApi()
-
VerificationKeysBankApi
@Autowired public VerificationKeysBankApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
createVerificationKey
public reactor.core.publisher.Mono<VerificationKeyBankModel> createVerificationKey(String bankGuid, PostVerificationKeyBankModel postVerificationKeyBankModel) throws org.springframework.web.reactive.function.client.WebClientResponseException
Create VerificationKey Creates a verification key. Example code (python) for generating a Verification Key ```python import base64 from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import padding from cryptography.hazmat.primitives.asymmetric import rsa nonce = \"wen moon\" private_key = rsa.generate_private_key(public_exponent=65537, key_size=2048) signature = base64.b64encode(private_key.sign( data=nonce.encode('ascii'), padding=padding.PKCS1v15(), algorithm=hashes.SHA512())).decode('ascii') public_key = base64.b64encode(private_key.public_key().public_bytes( encoding=serialization.Encoding.DER, format=serialization.PublicFormat.SubjectPublicKeyInfo)).decode('ascii') ```` ## State | State | Description | |-------|-------------| | storing | The Platform is storing the verification in our private key store | | pending | The Platform is verifying the verification key's signature | | verified | The Platform has verified the verification key's signature and the key can be used | | failed | The Platform was not able to verify the verification key's signature and the key cannot be used | Required scope: **banks:write**201 - verification key created
- Parameters:
bankGuid- Identifier for the bank.postVerificationKeyBankModel- The postVerificationKeyBankModel parameter- Returns:
- VerificationKeyBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
createVerificationKeyWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<VerificationKeyBankModel>> createVerificationKeyWithHttpInfo(String bankGuid, PostVerificationKeyBankModel postVerificationKeyBankModel) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getVerificationKey
public reactor.core.publisher.Mono<VerificationKeyBankModel> getVerificationKey(String bankGuid, String verificationKeyGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
Get VerificationKey Retrieves a verification key. Required scope: **banks:read**200 - Verification Key found
- Parameters:
bankGuid- Identifier for the bank.verificationKeyGuid- Identifier for the verification key.- Returns:
- VerificationKeyBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getVerificationKeyWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<VerificationKeyBankModel>> getVerificationKeyWithHttpInfo(String bankGuid, String verificationKeyGuid) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
listVerificationKeys
public reactor.core.publisher.Mono<VerificationKeyListBankModel> listVerificationKeys(String bankGuid, BigInteger page, BigInteger perPage) throws org.springframework.web.reactive.function.client.WebClientResponseException
Get Verification Keys list Retrieves a listing of verification keys of a bank. Required scope: **banks:read**200 - get list of verification keys
- Parameters:
bankGuid- Identifier for the bank.page- The page parameterperPage- The perPage parameter- Returns:
- VerificationKeyListBankModel
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
listVerificationKeysWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<VerificationKeyListBankModel>> listVerificationKeysWithHttpInfo(String bankGuid, BigInteger page, BigInteger perPage) throws org.springframework.web.reactive.function.client.WebClientResponseException
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
-