|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.rdfcontext.signing.RDFSigner
This object manipulate a given signed (or not signed) RDF/XML. It build a signature report list, it can add or delete a report in the list. Moreover it can paste the valid signature on the graph
| Constructor Summary | |
RDFSigner(com.hp.hpl.jena.rdf.model.Model originalModel)
Deprecated. This constructor create a signr given a generic Model. The signature process works only on MSGs! |
|
RDFSigner(com.hp.hpl.jena.rdf.model.Model originalModel,
IURLResolver customURLResolver)
Deprecated. This constructor create a signr given a generic Model. The signature process works only on MSGs! |
|
RDFSigner(MSG msgToBeSigned)
Default constructor. |
|
RDFSigner(MSG msgToBeSigned,
IURLResolver customURLResolver)
|
|
| Method Summary | |
void |
addSignatureReport(SignatureReport sr)
Add a SignatureReport to the signatureList |
com.hp.hpl.jena.rdf.model.Model |
getSignedModel()
Returns the signed version of the model (=cleanmodel + signatures in the current report) The Signature |
boolean |
isAllValid()
return true if all the signature in the signatureList has valid |
java.util.ArrayList |
listSignatureReports()
|
boolean |
signModel(LiveDBinSignature liveSign)
Signs a model using the given LiveSignature and the DefaultURLResolver to check the availability of the certificate. |
boolean |
signModel(LiveDBinSignature liveSign,
IURLResolver resolver)
Sign the current model (passed by Constructor) using the specified LiveDBinSignature. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RDFSigner(com.hp.hpl.jena.rdf.model.Model originalModel)
originalModel -
public RDFSigner(com.hp.hpl.jena.rdf.model.Model originalModel,
IURLResolver customURLResolver)
originalModel - public RDFSigner(MSG msgToBeSigned)
public RDFSigner(MSG msgToBeSigned,
IURLResolver customURLResolver)
msgToBeSigned - - the MSG to be signedcustomURLResolver - - the URL resolver to be used to verify the availability of the online certificate.| Method Detail |
public boolean isAllValid()
public void addSignatureReport(SignatureReport sr)
public boolean signModel(LiveDBinSignature liveSign,
IURLResolver resolver)
liveSign - resolver - The URLResolver to check the availability of the certificate via URL (provided in the RDF model).
InvalidSignedDataException
java.security.SignatureExceptionLiveDBinSignaturepublic boolean signModel(LiveDBinSignature liveSign)
liveSign -
java.security.SignatureException
public com.hp.hpl.jena.rdf.model.Model getSignedModel()
throws UnsupportedCertificateTypeException,
EmptyModelException
EmptyModelException
UnsupportedCertificateTypeExceptionpublic java.util.ArrayList listSignatureReports()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||