Search in sources :

Example 1 with KeyStoreService

use of won.cryptography.service.keystore.KeyStoreService in project webofneeds by researchstudio-sat.

the class TestSigningUtils method printCerts.

public void printCerts() throws IOException, CertificateException {
    // load public keys:
    File keysFile = new File(this.getClass().getResource(TestSigningUtils.KEYS_FILE).getFile());
    KeyStoreService storeService = new FileBasedKeyStoreService(keysFile, "temp");
    printCerificate(storeService, atomCertUri, atomCertUri);
    printCerificate(storeService, ownerCertUri, ownerCertUri);
    printCerificate(storeService, ownerCertUri, nodeCertUri);
}
Also used : FileBasedKeyStoreService(won.cryptography.service.keystore.FileBasedKeyStoreService) FileBasedKeyStoreService(won.cryptography.service.keystore.FileBasedKeyStoreService) KeyStoreService(won.cryptography.service.keystore.KeyStoreService) File(java.io.File)

Aggregations

File (java.io.File)1 FileBasedKeyStoreService (won.cryptography.service.keystore.FileBasedKeyStoreService)1 KeyStoreService (won.cryptography.service.keystore.KeyStoreService)1