public final class BasicRepository extends RepositoryModel implements Repository
| Constructor and Description |
|---|
BasicRepository() |
| Modifier and Type | Method and Description |
|---|---|
RepositoryModel |
model()
Returns the repository model.
|
Artifactory |
sign(Codec codec,
Signature engine,
PrivateKey key,
Object artifact)
Encodes and signs the given
artifact
and returns an artifactory for decoding it. |
Artifactory |
verify(Codec codec,
Signature engine,
PublicKey key)
Verifies the signature of the encoded artifact
and returns an artifactory for decoding it.
|
equals, getAlgorithm, getArtifact, getSignature, hashCode, setAlgorithm, setArtifact, setSignaturepublic final RepositoryModel model()
Repositorymodel in interface Repositorypublic final Artifactory sign(Codec codec, Signature engine, PrivateKey key, @Nullable Object artifact) throws Exception
Repositoryartifact
and returns an artifactory for decoding it.
As a side effect, the state of this repository is modified so that a
subsequent verification can succeed.sign in interface Repositorycodec - the codec for encoding the artifact.
It is an implementation detail whether or not encoding
null is supported or not.engine - the signature engine.key - the private key.artifact - the nullable artifact to sign.
This may be null if and only if the codec
supports encoding it.Exceptionpublic final Artifactory verify(Codec codec, Signature engine, PublicKey key) throws Exception
Repositoryverify in interface Repositorycodec - the codec for decoding the artifact.
It is an implementation detail whether or not decoding
null is supported or not.engine - the signature engine.key - the public key.RepositoryIntegrityException - if the integrity of the repository
with its encoded artifact has been compromised.ExceptionCopyright © 2005–2017 Schlichtherle IT Services. All rights reserved.