|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.rdfcontext.signing.SignatureReport
An immutable object representing a piece of signed data. It contains the signature's information. It also can check for validity of the signature and for integrity of signed data. NOTE: SignatureReports can be extracted from an RDF Graph using the RDFSigner utility.
RDFSigner| Constructor Summary | |
SignatureReport(LiveDBinSignature live,
java.lang.String data,
IURLResolver urlResolver)
Deprecated. This constructor might not been used. The right way to sign data is via RDFSigner.signModel() method. |
|
SignatureReport(java.lang.String data,
java.lang.String signatureValue,
java.net.URL publicKey,
java.lang.String kindOfCertificate,
IURLResolver urlresolver)
Build a new signature report from the given data, signature value, certificate URI and the kind of certificate This constructor is used by the RDFSigner object. |
|
| Method Summary | |
java.security.PublicKey |
extractPublicKey()
|
java.security.PublicKey |
extractPublicKey(java.net.URL certificateURL)
Extract the public key from a PGP or X.509 certificate given it's valid URL |
java.lang.String |
getDataSigned()
|
java.lang.String |
getKindOfCertificate()
|
java.net.URL |
getPublicKeyCertificateURL()
|
java.lang.String |
getPublicKeyCertificateURLString()
|
java.lang.String |
getSignatureValue()
|
boolean |
isValid()
Tests the validity of the stored certificate. |
boolean |
testSignature(java.security.PublicKey pubKey)
Checks if the RDFGraph has been segned using the given PublicKey |
boolean |
testSignature(java.net.URL certificateURL)
Checks if the RDFGraph has been segned using the PublicKey retrived from the specified certificate's URL. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SignatureReport(java.lang.String data,
java.lang.String signatureValue,
java.net.URL publicKey,
java.lang.String kindOfCertificate,
IURLResolver urlresolver)
data - - data signedsignatureValue - - the signature string 64-encodedpublicKey - - the URI where the public key is storedkindOfCertificate - - the kind of certificate(PGP or X.509)
public SignatureReport(LiveDBinSignature live,
java.lang.String data,
IURLResolver urlResolver)
throws java.io.IOException,
org.bouncycastle.openpgp.PGPException,
java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.SignatureException
live - - a object which can sign given datadata - - a string data| Method Detail |
public java.lang.String toString()
public java.lang.String getPublicKeyCertificateURLString()
public java.lang.String getKindOfCertificate()
public java.net.URL getPublicKeyCertificateURL()
public java.lang.String getDataSigned()
public java.lang.String getSignatureValue()
public boolean testSignature(java.net.URL certificateURL)
certificateURL - The url of the certificate , it will be retrieved withpublic boolean testSignature(java.security.PublicKey pubKey)
pubKey -
public boolean isValid()
public java.security.PublicKey extractPublicKey(java.net.URL certificateURL)
throws PublicKeyExtractionException
certificateURL - the URL from which the certificate can be retrived
PublicKeyExtractionException
java.lang.Exception
public java.security.PublicKey extractPublicKey()
throws PublicKeyExtractionException
PublicKeyExtractionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||