Class VerificationKeysBankApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-08-17T19:40:03.891128Z[Etc/UTC]")
    public class VerificationKeysBankApi
    extends Object
    • 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​(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') ### DISCLAIMER:- Since NO ENCRYPTION is used in the key storage/formatting. Please DO NOT use this code in production environment. private_pem = private_key.private_bytes(encoding=serialization.Encoding.PEM, format=serialization.PrivateFormat.TraditionalOpenSSL, encryption_algorithm=serialization.NoEncryption()) ## Store the private_key in a file verification_key.pem with open (\"verification_key.pem\", 'wb') as pem_out: pem_out.write(private_pem) pem_out.close() print(\"Public Key: \", public_key) print(\"Signature: \", signature) ```` ## 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

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed, invalid subject

        403 - Invalid scope

        Parameters:
        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​(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 verificationKeyGuid)
                                                                                 throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get VerificationKey Retrieves a verification key. Required scope: **banks:read**

        200 - Verification Key found

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed, invalid subject

        403 - Invalid scope

        404 - verification key not found

        Parameters:
        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 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​(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

        400 - Invalid requests - malformed authentication header

        401 - Unauthorized - Authentication failed, invalid subject

        403 - Invalid scope

        Parameters:
        page - The page parameter
        perPage - 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​(BigInteger page,
                                                                                                                                                   BigInteger perPage)
                                                                                                                                            throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException