public class WonSigner
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.jena.rdf.model.Model |
defaultGraphSigningMethod |
static java.lang.String |
ENV_HASH_ALGORITHM |
static java.lang.String |
SIGNING_ALGORITHM_NAME |
static java.lang.String |
SIGNING_ALGORITHM_PROVIDER |
| Constructor and Description |
|---|
WonSigner(org.apache.jena.query.Dataset dataset) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<WonSignatureData> |
sign(java.security.PrivateKey privateKey,
java.lang.String cert,
java.security.PublicKey publicKey,
java.util.Collection<java.lang.String> graphsToSign) |
java.util.List<WonSignatureData> |
sign(java.security.PrivateKey privateKey,
java.lang.String cert,
java.security.PublicKey publicKey,
java.lang.String... graphsToSign)
Signs the graphs of the dataset with the provided private key and referencing
the provided certificate/public key uri in signature, this uri will be used
to extract key by the verification party.
|
public static final java.lang.String SIGNING_ALGORITHM_NAME
public static final java.lang.String SIGNING_ALGORITHM_PROVIDER
public static final java.lang.String ENV_HASH_ALGORITHM
public static final org.apache.jena.rdf.model.Model defaultGraphSigningMethod
public java.util.List<WonSignatureData> sign(java.security.PrivateKey privateKey, java.lang.String cert, java.security.PublicKey publicKey, java.lang.String... graphsToSign) throws java.lang.Exception
privateKey - the private keycert - the certificate reference (where the public key can be found for verification)graphsToSign - the names of the graphs that have to be signed. If not provided -
all the graphs that don't have signatures will be signed.java.lang.Exceptionpublic java.util.List<WonSignatureData> sign(java.security.PrivateKey privateKey, java.lang.String cert, java.security.PublicKey publicKey, java.util.Collection<java.lang.String> graphsToSign) throws java.lang.Exception
java.lang.ExceptionCopyright © 2018. All Rights Reserved.