Skip to content

ks-no/fiks-io-asice-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fiks-io-asic-handler

GitHub Maven Central GitHub last commit GitHub Release Date

Wrapper for DIFI's AsicE library

Example

final ExecutorService executor = // create Executor service to be used internally (minimum 2 threads)
final PrivateKey privateKey = // a java.security.PrivateKey instance to be used for decryption 
final KeyStoreHolder keyStoreHolder = KeyStoreHolder.builder()
    .withKeyStore(keyStore) // a java.security.KeyStore to be used to get encryption certificate from
    .withKeyStorePassword("keystorepassword")
    .withKeyAlias("keyAlias")
    .withKeyPassword("keyPassword")
    .build();
final AsicHandler asicHandler = AsicHandler.builder()
    .withPrivatNokkel(privateKey)
    .withExecutorService(executor)
    .withKeyStoreHolder(keyStoreHolder)
    .build();