public final class SignedFile extends Object implements Serializable
Constructor and Description |
---|
SignedFile(File file,
Signature signature,
Certificate certificate)
Constructor.
|
SignedFile(File file,
Signature signature,
PublicKey publicKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Certificate |
getCertificate()
The certificate is provided.
|
File |
getFile()
The file which is has been verified.
|
PublicKey |
getPublicKey()
The public key which has been used to verified the file.
|
Signature |
getSignature()
The signature used to verify the file with.
|
public SignedFile(File file, Signature signature, PublicKey publicKey)
null
.file
- the file which is signed.signature
- the signature which has been used to signed to file.publicKey
- the public used to verify the signature with.public SignedFile(File file, Signature signature, Certificate certificate)
file
- the file which is signed.signature
- the signature which has been used to signed to file.certificate
- the certificate in which the public key has been used to verify the signature with.public final Certificate getCertificate()
public final File getFile()
public final PublicKey getPublicKey()
public final Signature getSignature()