public interface Authentication
|Modifier and Type||Method and Description|
Encodes and signs the given
Verifies the signature of the encoded artifact in the underlying repository model and returns a decoder for it.
Decoder sign(RepositoryController repository, Object artifact) throws Exception
artifactand returns a decoder for it. As a side effect, the state of the underlying repository model is updated with the encoded artifact and its signature so that a subsequent verification can succeed.
repository- the controller for the repository for encoding the artifact to.
artifact- the artifact to sign.
Decoder verify(RepositoryController repository) throws Exception
repository- the controller for the repository for decoding the artifact from.
RepositoryIntegrityException- if the integrity of the repository with its encoded artifact has been compromised.
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.