Package | Description |
---|---|
org.eclipse.aether.connector.basic |
Support for downloads/uploads using remote repositories that have a URI-based content structure/layout.
|
org.eclipse.aether.impl.guice |
The integration with the dependency injection framework
Google Guice.
|
org.eclipse.aether.internal.impl |
The various sub components that collectively implement the repository system.
|
org.eclipse.aether.internal.impl.checksum | |
org.eclipse.aether.internal.impl.resolution | |
org.eclipse.aether.spi.checksums | |
org.eclipse.aether.spi.connector.checksum |
The support infrastructure for repository connectors to apply checksum policies when validating the integrity of
downloaded files.
|
org.eclipse.aether.spi.connector.layout |
The contract to locate URI-based resources using custom repository layouts.
|
Modifier and Type | Field and Description |
---|---|
(package private) ChecksumAlgorithmFactory |
ChecksumCalculator.Checksum.checksumAlgorithmFactory |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<ChecksumAlgorithmFactory> |
ChecksumValidator.checksumAlgorithmFactories |
Modifier and Type | Method and Description |
---|---|
private java.io.File |
ChecksumValidator.getChecksumFile(ChecksumAlgorithmFactory factory) |
Modifier and Type | Method and Description |
---|---|
static ChecksumCalculator |
ChecksumCalculator.newInstance(java.io.File targetFile,
java.util.Collection<ChecksumAlgorithmFactory> checksumAlgorithmFactories) |
Constructor and Description |
---|
Checksum(ChecksumAlgorithmFactory checksumAlgorithmFactory) |
Constructor and Description |
---|
ChecksumCalculator(java.io.File targetFile,
java.util.Collection<ChecksumAlgorithmFactory> checksumAlgorithmFactories) |
ChecksumValidator(java.io.File dataFile,
java.util.Collection<ChecksumAlgorithmFactory> checksumAlgorithmFactories,
FileProcessor fileProcessor,
ChecksumValidator.ChecksumFetcher checksumFetcher,
ChecksumPolicy checksumPolicy,
java.util.Map<java.lang.String,java.lang.String> providedChecksums,
java.util.Collection<RepositoryLayout.ChecksumLocation> checksumLocations) |
GetTaskRunner(java.net.URI path,
java.io.File file,
ChecksumPolicy checksumPolicy,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories,
java.util.List<RepositoryLayout.ChecksumLocation> checksumLocations,
java.util.Map<java.lang.String,java.lang.String> providedChecksums,
TransferTransportListener<?> listener) |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Map<java.lang.String,ChecksumAlgorithmFactory> |
AetherModule.provideChecksumTypes(ChecksumAlgorithmFactory sha512,
ChecksumAlgorithmFactory sha256,
ChecksumAlgorithmFactory sha1,
ChecksumAlgorithmFactory md5) |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Map<java.lang.String,ChecksumAlgorithmFactory> |
AetherModule.provideChecksumTypes(ChecksumAlgorithmFactory sha512,
ChecksumAlgorithmFactory sha256,
ChecksumAlgorithmFactory sha1,
ChecksumAlgorithmFactory md5) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ChecksumAlgorithmFactory> |
Maven2RepositoryLayoutFactory.Maven2RepositoryLayout.configuredChecksumAlgorithms |
Modifier and Type | Method and Description |
---|---|
java.util.List<ChecksumAlgorithmFactory> |
Maven2RepositoryLayoutFactory.Maven2RepositoryLayout.getChecksumAlgorithmFactories() |
Constructor and Description |
---|
Maven2RepositoryLayout(ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector,
java.util.List<ChecksumAlgorithmFactory> configuredChecksumAlgorithms,
java.util.Set<java.lang.String> extensionsWithoutChecksums) |
Modifier and Type | Class and Description |
---|---|
class |
Md5ChecksumAlgorithmFactory
The MD5 checksum type.
|
class |
MessageDigestChecksumAlgorithmFactorySupport
Support class to implement
ChecksumAlgorithmFactory based on Java MessageDigest . |
class |
Sha1ChecksumAlgorithmFactory
The SHA-1 checksum type.
|
class |
Sha256ChecksumAlgorithmFactory
The SHA-256 checksum type.
|
class |
Sha512ChecksumAlgorithmFactory
The SHA-512 checksum type.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ChecksumAlgorithmFactory> |
DefaultChecksumAlgorithmFactorySelector.factories |
Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithmFactory |
DefaultChecksumAlgorithmFactorySelector.select(java.lang.String algorithmName) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ChecksumAlgorithmFactory> |
DefaultChecksumAlgorithmFactorySelector.getChecksumAlgorithmFactories() |
java.util.List<ChecksumAlgorithmFactory> |
DefaultChecksumAlgorithmFactorySelector.selectList(java.util.Collection<java.lang.String> algorithmNames) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
SparseDirectoryTrustedChecksumsSource.calculateArtifactPath(boolean originAware,
Artifact artifact,
ArtifactRepository artifactRepository,
ChecksumAlgorithmFactory checksumAlgorithmFactory) |
Modifier and Type | Method and Description |
---|---|
void |
SummaryFileTrustedChecksumsSource.SummaryFileWriter.addTrustedArtifactChecksums(Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories,
java.util.Map<java.lang.String,java.lang.String> trustedArtifactChecksums) |
void |
SparseDirectoryTrustedChecksumsSource.SparseDirectoryWriter.addTrustedArtifactChecksums(Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories,
java.util.Map<java.lang.String,java.lang.String> trustedArtifactChecksums) |
protected java.util.Map<java.lang.String,java.lang.String> |
SummaryFileTrustedChecksumsSource.doGetTrustedArtifactChecksums(RepositorySystemSession session,
Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories) |
protected java.util.Map<java.lang.String,java.lang.String> |
SparseDirectoryTrustedChecksumsSource.doGetTrustedArtifactChecksums(RepositorySystemSession session,
Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories) |
protected abstract java.util.Map<java.lang.String,java.lang.String> |
FileTrustedChecksumsSourceSupport.doGetTrustedArtifactChecksums(RepositorySystemSession session,
Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories)
Implementors MUST NOT return
null at this point, as this source is enabled. |
java.util.Map<java.lang.String,java.lang.String> |
TrustedToProvidedChecksumsSourceAdapter.getProvidedArtifactChecksums(RepositorySystemSession session,
ArtifactDownload transfer,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories) |
java.util.Map<java.lang.String,java.lang.String> |
FileTrustedChecksumsSourceSupport.getTrustedArtifactChecksums(RepositorySystemSession session,
Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories)
This implementation will call into underlying code only if enabled, and will enforce non-
null return
value. |
Constructor and Description |
---|
DefaultChecksumAlgorithmFactorySelector(java.util.Map<java.lang.String,ChecksumAlgorithmFactory> factories) |
Modifier and Type | Method and Description |
---|---|
private void |
TrustedChecksumsArtifactResolverPostProcessor.recordArtifactChecksums(RepositorySystemSession session,
ArtifactResult artifactResult,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories)
Calculates and records checksums into trusted sources that support writing.
|
private boolean |
TrustedChecksumsArtifactResolverPostProcessor.validateArtifactChecksums(RepositorySystemSession session,
ArtifactResult artifactResult,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories,
boolean failIfMissing)
Validates trusted checksums against
ArtifactResult , returns true denoting "valid" checksums or
false denoting "invalid" checksums. |
Modifier and Type | Method and Description |
---|---|
void |
TrustedChecksumsSource.Writer.addTrustedArtifactChecksums(Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories,
java.util.Map<java.lang.String,java.lang.String> trustedArtifactChecksums)
Performs whatever implementation requires to "set" (write/add/append) given map of trusted checksums.
|
java.util.Map<java.lang.String,java.lang.String> |
TrustedChecksumsSource.getTrustedArtifactChecksums(RepositorySystemSession session,
Artifact artifact,
ArtifactRepository artifactRepository,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories)
May return the trusted checksums (for given artifact) from trusted source, or
null if not enabled. |
Modifier and Type | Class and Description |
---|---|
class |
ChecksumAlgorithmFactorySupport
Support class for
ChecksumAlgorithmFactory implementations. |
Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithmFactory |
ChecksumAlgorithmFactorySelector.select(java.lang.String algorithmName)
Returns factory for given algorithm name, or throws if algorithm not supported.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ChecksumAlgorithmFactory> |
ChecksumAlgorithmFactorySelector.getChecksumAlgorithmFactories()
Returns immutable collection of all supported algorithms.
|
java.util.List<ChecksumAlgorithmFactory> |
ChecksumAlgorithmFactorySelector.selectList(java.util.Collection<java.lang.String> algorithmNames)
Returns a list of factories in same order as algorithm names are ordered, or throws if any of the
algorithm name is not supported.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
ChecksumAlgorithmHelper.calculate(byte[] data,
java.util.List<ChecksumAlgorithmFactory> factories)
Calculates checksums for specified data.
|
static java.util.Map<java.lang.String,java.lang.String> |
ChecksumAlgorithmHelper.calculate(java.io.File file,
java.util.List<ChecksumAlgorithmFactory> factories)
Calculates checksums for specified file.
|
private static java.util.Map<java.lang.String,java.lang.String> |
ChecksumAlgorithmHelper.calculate(java.io.InputStream inputStream,
java.util.List<ChecksumAlgorithmFactory> factories) |
java.util.Map<java.lang.String,java.lang.String> |
ProvidedChecksumsSource.getProvidedArtifactChecksums(RepositorySystemSession session,
ArtifactDownload transfer,
java.util.List<ChecksumAlgorithmFactory> checksumAlgorithmFactories)
May return the provided checksums (for given artifact transfer) from source other than remote repository, or
null if it have no checksums available for given transfer. |
Modifier and Type | Field and Description |
---|---|
private ChecksumAlgorithmFactory |
RepositoryLayout.ChecksumLocation.checksumAlgorithmFactory |
Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithmFactory |
RepositoryLayout.ChecksumLocation.getChecksumAlgorithmFactory()
Gets the
ChecksumAlgorithmFactory that is used to calculate the checksum. |
Modifier and Type | Method and Description |
---|---|
java.util.List<ChecksumAlgorithmFactory> |
RepositoryLayout.getChecksumAlgorithmFactories()
Returns immutable list of
ChecksumAlgorithmFactory this instance of layout uses, never null . |
Modifier and Type | Method and Description |
---|---|
static RepositoryLayout.ChecksumLocation |
RepositoryLayout.ChecksumLocation.forLocation(java.net.URI location,
ChecksumAlgorithmFactory checksumAlgorithmFactory)
Creates a checksum descriptor for the specified artifact/metadata location and algorithm.
|
private static void |
RepositoryLayout.ChecksumLocation.verify(java.net.URI location,
ChecksumAlgorithmFactory checksumAlgorithmFactory) |
Constructor and Description |
---|
ChecksumLocation(java.net.URI location,
ChecksumAlgorithmFactory checksumAlgorithmFactory)
Creates a new checksum file descriptor with the specified algorithm and location.
|