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 voidauthenticateLibraryAuthor(java.lang.String libId, EnvelopeVersion libraryEnvelope)LoadedLibraryfindLibrary(LibraryIdentifier libId)get a library matching name and version of the given identifierLoadedLibraryfindLibrary(java.lang.String name)get the newest library for the given namestatic java.lang.StringgetLibraryEnvelopeIdentifier(LibraryIdentifier libId)static java.lang.StringgetLibraryVersionsEnvelopeIdentifier(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:Repositoryget the newest library for the given name- Specified by:
findLibraryin 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:Repositoryget a library matching name and version of the given identifier- Specified by:
findLibraryin 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
-