public class ZCertStore extends Object
ZCert class does the
work of managing a single certificate.
Those files need to be in ZMP-Format which is created by ZConfig
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZCertStore.Fingerprinter |
static class |
ZCertStore.Hasher |
static class |
ZCertStore.Timestamper |
| Constructor and Description |
|---|
ZCertStore(String location)
Create a Certificate Store at that file system folder location
|
ZCertStore(String location,
ZCertStore.Fingerprinter fingerprinter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPublicKey(byte[] publicKey)
Check if a public key is in the certificate store.
|
boolean |
containsPublicKey(String publicKey)
check if a z85-based public key is in the certificate store.
|
ZMetadata |
getMetadata(String publicKey) |
public ZCertStore(String location)
location - public ZCertStore(String location, ZCertStore.Fingerprinter fingerprinter)
public boolean containsPublicKey(byte[] publicKey)
publicKey - needs to be a 32 byte array representing the public keypublic boolean containsPublicKey(String publicKey)
publicKey - Copyright © 2020. All rights reserved.