| Constructor and Description |
|---|
NAVXFile(File file)
Create a NAVXFile from the specified file.
|
NAVXFile(SeekableByteChannel channel)
Create a NAVXFile from the specified channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
computeDigest(net.jsign.DigestAlgorithm digestAlgorithm)
Computes the digest of the file.
|
org.bouncycastle.asn1.ASN1Object |
createIndirectData(net.jsign.DigestAlgorithm digestAlgorithm)
Creates the SpcIndirectDataContent structure containing the digest of the file.
|
List<org.bouncycastle.cms.CMSSignedData> |
getSignatures()
Returns the Authenticode signatures on the file.
|
static boolean |
isNAVXFile(File file)
Tells if the specified file is a NAVX file.
|
void |
save()
Saves the file.
|
void |
setSignature(org.bouncycastle.cms.CMSSignedData signature)
Sets the signature of the file, overwriting the previous one.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSignedAttributes, createSignedContent, of, of, setSignatures, validatepublic NAVXFile(File file) throws IOException
file - the file to openIOException - if an I/O error occurspublic NAVXFile(SeekableByteChannel channel) throws IOException
channel - the channel to read the file fromIOException - if an I/O error occurspublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic byte[] computeDigest(net.jsign.DigestAlgorithm digestAlgorithm) throws IOException
SignablecomputeDigest in interface SignabledigestAlgorithm - the digest algorithm to useIOException - if an I/O error occurspublic org.bouncycastle.asn1.ASN1Object createIndirectData(net.jsign.DigestAlgorithm digestAlgorithm) throws IOException
SignablecreateIndirectData in interface SignabledigestAlgorithm - the digest algorithm to useIOException - if an I/O error occurspublic List<org.bouncycastle.cms.CMSSignedData> getSignatures() throws IOException
SignableSignable.setSignatures(List).getSignatures in interface SignableIOException - if an I/O error occurspublic static boolean isNAVXFile(File file) throws IOException
file - the file to checktrue if the file is a NAVX file, false otherwiseIOException - if an I/O error occurspublic void save() throws IOException
Signablesave in interface SignableIOException - if an I/O error occurspublic void setSignature(org.bouncycastle.cms.CMSSignedData signature) throws IOException
SignablesetSignature in interface Signablesignature - the signature to put, or null to remove the signatureIOException - if an I/O error occursCopyright © 2012–2025. All rights reserved.