public class WithSignature extends WithDigest implements ArchiveConfigurationPlugin, ManifestProcessor, ArchiveResourceSource, ArchiveResourceListener
WithSignature archive extension
ArchiveResourceSource.ResourceSourceLifecycle
digester, manifest
Modifier and Type | Method and Description |
---|---|
void |
added(ArchiveResource resource) |
WithSignature |
alias(String alias)
The alias for the key in store
|
void |
attach(ArchiveRegistrar core) |
WithSignature |
createdBy(String author)
createdBy.
|
WithSignature |
digestedBy(MessageDigest digest)
Adds digest entries to the manifest.
|
WithSignature |
digestedBy(StandardDigestAlgorithms hash)
Adds digest entries to the manifest.
|
Stream<ArchiveResource> |
drain(ArchiveResourceSource.ResourceSourceLifecycle stage) |
WithSignature |
password(char[] password)
The password for the key in store
|
WithSignature |
signatureAlgorithm(StandardSignatureAlgorithms algorithm)
signatureAlgorithm.
|
WithSignature |
signatureAlgorithm(String algorithm)
signatureAlgorithm.
|
WithSignature |
signatureFileName(String signatureFilename)
Defaults to if not set
|
WithSignature |
store(KeyStore store)
The store containing the key and cert(s)
|
static WithSignature |
withSignature()
withSignature.
|
base64Digest, process, withDigest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
wrap
public static WithSignature withSignature()
withSignature.
WithSignature
object.public void added(ArchiveResource resource)
added
in interface ArchiveResourceListener
added
in class WithDigest
public Stream<ArchiveResource> drain(ArchiveResourceSource.ResourceSourceLifecycle stage)
drain
in interface ArchiveResourceSource
public void attach(ArchiveRegistrar core)
attach
in interface ArchiveConfigurationPlugin
attach
in class WithDigest
public WithSignature digestedBy(StandardDigestAlgorithms hash)
WithDigest
digestedBy
in class WithDigest
hash
- the algorithm namepublic WithSignature digestedBy(MessageDigest digest)
WithDigest
digestedBy
in class WithDigest
digest
- the hash algorithmpublic WithSignature store(KeyStore store)
store
- the key storepublic WithSignature alias(String alias)
alias
- by which the key shall be knownpublic WithSignature password(char[] password)
password
- an array of char
objects.public WithSignature signatureFileName(String signatureFilename)
signatureFilename
- a String
object.WithSignature
object.public WithSignature signatureAlgorithm(StandardSignatureAlgorithms algorithm)
signatureAlgorithm.
algorithm
- a String
object.WithSignature
object.public WithSignature signatureAlgorithm(String algorithm)
signatureAlgorithm.
algorithm
- a String
object.WithSignature
object.public WithSignature createdBy(String author)
createdBy.
author
- a String
object.WithSignature
object.Copyright © 2018 earcam. All rights reserved.