Class SharedStorageRepository
java.lang.Object
i5.las2peer.classLoaders.libraries.SharedStorageRepository
- All Implemented Interfaces:
Repository
- Direct Known Subclasses:
BlockchainRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
authenticateLibraryAuthor
(String libId, EnvelopeVersion libraryEnvelope) findLibrary
(LibraryIdentifier libId) get a library matching name and version of the given identifierfindLibrary
(String name) get the newest library for the given namestatic String
static String
-
Constructor Details
-
SharedStorageRepository
-
-
Method Details
-
getLibraryEnvelopeIdentifier
-
getLibraryVersionsEnvelopeIdentifier
-
findLibrary
Description copied from interface:Repository
get the newest library for the given name- Specified by:
findLibrary
in interfaceRepository
- Parameters:
name
- A library name- Returns:
- a loaded library for the given library name
- Throws:
LibraryNotFoundException
- If the library was not found in this repository
-
findLibrary
Description copied from interface:Repository
get a library matching name and version of the given identifier- Specified by:
findLibrary
in interfaceRepository
- Parameters:
libId
- A library identifier- Returns:
- a loaded library for the given identifier
- Throws:
LibraryNotFoundException
- If the library was not found in this repository
-
authenticateLibraryAuthor
protected void authenticateLibraryAuthor(String libId, EnvelopeVersion libraryEnvelope) throws InternalSecurityException - Throws:
InternalSecurityException
-