public interface SignatureAlgorithmInterface
| Modifier and Type | Method and Description |
|---|---|
void |
assemble(GraphCollection gc,
String signatureGraphName)
Assembles a
GraphCollection (add signature(s) and a signature graph). |
void |
canonicalize(GraphCollection gc)
Canonicalizes a
GraphCollection for a unique representation (commonly blank node removal/labeling and sorting). |
String |
getName()
Gets the name of the signature algorithm (used for identification of the algorithm when signing/verifying)
|
void |
hash(GraphCollection gc,
String digestAlgo)
Calculates the hash value of a
GraphCollection and safes it in its SignatureData. |
void |
postCanonicalize(GraphCollection gc)
Executes extra steps after the actual canonicalization of a
GraphCollection |
void |
postHash(GraphCollection gc)
Executes extra steps after the actual hash calculation of a
GraphCollection |
void |
sign(GraphCollection gc,
Key privateKey,
String verficiationCertificate)
Signs
GraphCollection (calculate signature(s) using a certificate/key and the hash value(s)). |
boolean |
verify(GraphCollection gc,
Key publicKey)
Verifies a signed graph collection using a public key
Involves canonicalization and hashing of the graph collection and a cryptographic signature check
|
void canonicalize(GraphCollection gc) throws Exception
GraphCollection for a unique representation (commonly blank node removal/labeling and sorting).
Must set SignatureData.canonicalizationMethod of SignatureData.gc - graphCollection which is canonicalizedExceptionvoid postCanonicalize(GraphCollection gc) throws Exception
GraphCollectiongc - graphCollection which is canonicalizedExceptionvoid hash(GraphCollection gc, String digestAlgo) throws Exception
GraphCollection and safes it in its SignatureData.
Must set SignatureData.graphDigestMethod and SignatureData.serializationMethod of SignatureData.gc - graphCollection which is hasheddigestAlgo - string specifying a digest algorithmExceptionvoid postHash(GraphCollection gc) throws Exception
GraphCollectiongc - graphCollection which is hashedExceptionvoid sign(GraphCollection gc, Key privateKey, String verficiationCertificate) throws Exception
GraphCollection (calculate signature(s) using a certificate/key and the hash value(s)).
Must set SignatureData.signatureMethod of SignatureData.gc - graphCollection which is signedprivateKey - key used to calculate the signatureverficiationCertificate - string specifying the certificate which should be used for verificationExceptionvoid assemble(GraphCollection gc, String signatureGraphName) throws Exception
GraphCollection (add signature(s) and a signature graph).gc - graphCollection which is assembledsignatureGraphName - string name for the signature graphExceptionboolean verify(GraphCollection gc, Key publicKey) throws Exception
gc - graphCollection which will be verifiedpublicKey - key for the cryptographic signature checkExceptionString getName()
Copyright © 2018. All rights reserved.