public class SignatureAlgorithmSayers2004 extends Object implements SignatureAlgorithmInterface
| Constructor and Description |
|---|
SignatureAlgorithmSayers2004() |
| 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 verificationCertificate)
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
|
public void canonicalize(GraphCollection gc) throws Exception
SignatureAlgorithmInterfaceGraphCollection for a unique representation (commonly blank node removal/labeling and sorting).
Must set SignatureData.canonicalizationMethod of SignatureData.canonicalize in interface SignatureAlgorithmInterfacegc - graphCollection which is canonicalizedExceptionpublic void postCanonicalize(GraphCollection gc)
SignatureAlgorithmInterfaceGraphCollectionpostCanonicalize in interface SignatureAlgorithmInterfacegc - graphCollection which is canonicalizedpublic void hash(GraphCollection gc, String digestAlgo) throws Exception
SignatureAlgorithmInterfaceGraphCollection and safes it in its SignatureData.
Must set SignatureData.graphDigestMethod and SignatureData.serializationMethod of SignatureData.hash in interface SignatureAlgorithmInterfacegc - graphCollection which is hasheddigestAlgo - string specifying a digest algorithmExceptionpublic void postHash(GraphCollection gc)
SignatureAlgorithmInterfaceGraphCollectionpostHash in interface SignatureAlgorithmInterfacegc - graphCollection which is hashedpublic void sign(GraphCollection gc, Key privateKey, String verificationCertificate) throws Exception
SignatureAlgorithmInterfaceGraphCollection (calculate signature(s) using a certificate/key and the hash value(s)).
Must set SignatureData.signatureMethod of SignatureData.sign in interface SignatureAlgorithmInterfacegc - graphCollection which is signedprivateKey - key used to calculate the signatureverificationCertificate - string specifying the certificate which should be used for verificationExceptionpublic void assemble(GraphCollection gc, String signatureGraphName) throws Exception
SignatureAlgorithmInterfaceGraphCollection (add signature(s) and a signature graph).assemble in interface SignatureAlgorithmInterfacegc - graphCollection which is assembledsignatureGraphName - string name for the signature graphExceptionpublic boolean verify(GraphCollection gc, Key publicKey) throws Exception
SignatureAlgorithmInterfaceverify in interface SignatureAlgorithmInterfacegc - graphCollection which will be verifiedpublicKey - key for the cryptographic signature checkExceptionpublic String getName()
SignatureAlgorithmInterfacegetName in interface SignatureAlgorithmInterfaceCopyright © 2018. All rights reserved.