public class SignatureVerifier extends Object
| Constructor and Description |
|---|
SignatureVerifier() |
| Modifier and Type | Method and Description |
|---|---|
static void |
resetAfterVerification(GraphCollection gc)
Resets a graph collection after a verification
Removes all temporary hash and signature values
Removes MSGs and converts them back to triple representation without MSGs
|
static boolean |
verify(GraphCollection gc,
Key publicKey)
Verify a graph collection using a public key
A graph collection can only be verified if it contains just a signature graph at root level and nothing else!
|
static boolean |
verify(GraphCollection gc,
X509Certificate cert)
Verify graph collection using a X.509 certificate
|
static boolean |
verify(String path,
Key publicKey)
Verify a file using a public key
|
static boolean |
verify(String path,
X509Certificate cert)
Verify a file using a X.509 certificate
|
public static boolean verify(String path, Key publicKey) throws Exception
path - path to a file containing graph datapublicKey - a public key for signature verificationExceptionpublic static boolean verify(String path, X509Certificate cert) throws Exception
path - path to a file containing graph datacert - a public key for signature verificationExceptionpublic static boolean verify(GraphCollection gc, X509Certificate cert) throws Exception
gc - cert - a public key for signature verificationExceptionpublic static boolean verify(GraphCollection gc, Key publicKey) throws Exception
gc - publicKey - a public key for signature verificationException - if full verification failedpublic static void resetAfterVerification(GraphCollection gc)
gc - Copyright © 2018. All rights reserved.