Interface ChecksumPolicyProvider
-
public interface ChecksumPolicyProvider
Assists repository connectors in applying checksum policies to downloaded resources.- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getEffectiveChecksumPolicy(org.eclipse.aether.RepositorySystemSession session, java.lang.String policy1, java.lang.String policy2)
Returns the least strict policy.ChecksumPolicy
newChecksumPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository, org.eclipse.aether.transfer.TransferResource resource, java.lang.String policy)
Retrieves the checksum policy with the specified identifier for use on the given remote resource.
-
-
-
Method Detail
-
newChecksumPolicy
ChecksumPolicy newChecksumPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository, org.eclipse.aether.transfer.TransferResource resource, java.lang.String policy)
Retrieves the checksum policy with the specified identifier for use on the given remote resource.- Parameters:
session
- The repository system session during which the request is made, must not benull
.repository
- The repository hosting the resource being transferred, must not benull
.resource
- The transfer resource on which the policy will be applied, must not benull
.policy
- The identifier of the policy to apply, must not benull
.- Returns:
- The policy to apply or
null
if checksums should be ignored.
-
getEffectiveChecksumPolicy
java.lang.String getEffectiveChecksumPolicy(org.eclipse.aether.RepositorySystemSession session, java.lang.String policy1, java.lang.String policy2)
Returns the least strict policy. A checksum policy is said to be less strict than another policy if it would accept a downloaded resource in all cases where the other policy would reject the resource.- Parameters:
session
- The repository system session during which the request is made, must not benull
.policy1
- A policy to compare, must not benull
.policy2
- A policy to compare, must not benull
.- Returns:
- The least strict policy among the two input policies.
-
-