Class TrustedToProvidedChecksumsSourceAdapter
- java.lang.Object
-
- org.eclipse.aether.internal.impl.checksum.TrustedToProvidedChecksumsSourceAdapter
-
- All Implemented Interfaces:
org.eclipse.aether.spi.checksums.ProvidedChecksumsSource
@Singleton @Named("trusted2provided") public final class TrustedToProvidedChecksumsSourceAdapter extends java.lang.Object implements org.eclipse.aether.spi.checksums.ProvidedChecksumsSource
Adapter that adaptsTrustedChecksumsSource
toProvidedChecksumsSource
used by connector. Hence, any "trusted" source exist that is enabled, automatically becomes "provided" source as well.- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description TrustedToProvidedChecksumsSourceAdapter(java.util.Map<java.lang.String,org.eclipse.aether.spi.checksums.TrustedChecksumsSource> trustedChecksumsSources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getProvidedArtifactChecksums(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.spi.connector.ArtifactDownload transfer, org.eclipse.aether.repository.RemoteRepository repository, java.util.List<org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> checksumAlgorithmFactories)
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TrustedToProvidedChecksumsSourceAdapter
@Inject public TrustedToProvidedChecksumsSourceAdapter(java.util.Map<java.lang.String,org.eclipse.aether.spi.checksums.TrustedChecksumsSource> trustedChecksumsSources)
-
-
Method Detail
-
getProvidedArtifactChecksums
public java.util.Map<java.lang.String,java.lang.String> getProvidedArtifactChecksums(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.spi.connector.ArtifactDownload transfer, org.eclipse.aether.repository.RemoteRepository repository, java.util.List<org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> checksumAlgorithmFactories)
- Specified by:
getProvidedArtifactChecksums
in interfaceorg.eclipse.aether.spi.checksums.ProvidedChecksumsSource
-
-