@Immutable public interface Repository
| 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.
|
RepositoryModel model()
Artifactory sign(Codec codec, Signature engine, PrivateKey key, @Nullable Object artifact) throws Exception
artifact
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.codec - 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.ExceptionArtifactory verify(Codec codec, Signature engine, PublicKey key) throws Exception
codec - 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.