Class SharedStorageRepository
java.lang.Object
i5.las2peer.classLoaders.libraries.SharedStorageRepository
- All Implemented Interfaces:
Repository
- Direct Known Subclasses:
BlockchainRepository
public class SharedStorageRepository extends java.lang.Object implements Repository
-
Constructor Summary
Constructors Constructor Description SharedStorageRepository(PastryNodeImpl node)
-
Method Summary
Modifier and Type Method Description protected void
authenticateLibraryAuthor(java.lang.String libId, EnvelopeVersion libraryEnvelope)
LoadedLibrary
findLibrary(LibraryIdentifier libId)
get a library matching name and version of the given identifierLoadedLibrary
findLibrary(java.lang.String name)
get the newest library for the given namestatic java.lang.String
getLibraryEnvelopeIdentifier(LibraryIdentifier libId)
static java.lang.String
getLibraryVersionsEnvelopeIdentifier(java.lang.String libName)
-
Constructor Details
-
Method Details
-
getLibraryEnvelopeIdentifier
-
getLibraryVersionsEnvelopeIdentifier
public static java.lang.String getLibraryVersionsEnvelopeIdentifier(java.lang.String libName) -
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(java.lang.String libId, EnvelopeVersion libraryEnvelope) throws InternalSecurityException- Throws:
InternalSecurityException
-