Skip to content

methics/laverca-neac-ca-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laverca NEAC CA Client

Simple Java client for the NEAC CA Signature API

Image

The project supports the following API end points:

  • /get_certificate
  • /sign

Example Usage

List certificates

NeacCaClient client = new NeacCaClient.Builder().withBaseUrl(BASE_URL)
                                                .withSpId("ABC-SP")                                              
                                                .withSpPassword("SecurePassword!")      
                                                .build();
NeacGetCertResp certs = client.getCertificate("35847001001");          

Sign a hash

NeacCaClient client = new NeacCaClient.Builder().withBaseUrl(BASE_URL)                                           
                                                .withSpId("ABC-SP")                                              
                                                .withSpPassword("SecurePassword!")                               
                                                .build();                                                        
FileToSign      file = new FileToSign("de020bd5b1b6aa9a7a4d0af3b89ef883378cc254fae49c8c509254bbb496f2e5", "test.pdf");
NeacSignResp sigresp = client.sign("35847001001", file);                                                         
String     signature = sigresp.data.signed_files.get(0).signature_value;                                             

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages