public static final class RepositoryLayout.Checksum extends Object
MessageDigest, e.g. "SHA-1" or "MD5".| Constructor and Description | 
|---|
| RepositoryLayout.Checksum(String algorithm,
                                                  URI location)Creates a new checksum file descriptor with the specified algorithm and location. | 
| Modifier and Type | Method and Description | 
|---|---|
| static RepositoryLayout.Checksum | forLocation(URI location,
                      String algorithm)Creates a checksum file descriptor for the specified artifact/metadata location and algorithm. | 
| String | getAlgorithm()Gets the name of the algorithm that is used to calculate the checksum. | 
| URI | getLocation()Gets the location of the checksum file with a remote repository. | 
| String | toString() | 
public RepositoryLayout.Checksum(String algorithm, URI location)
forLocation(URI, String) is usually more convenient though.algorithm - The algorithm used to calculate the checksum, must not be null.location - The relative URI to the checksum file within a repository, must not be null.public static RepositoryLayout.Checksum forLocation(URI location, String algorithm)
location - The relative URI to the artifact/metadata whose checksum file is being obtained, must not be
            null and must not have a query or fragment part.algorithm - The algorithm used to calculate the checksum, must not be null.null.public String getAlgorithm()
null.MessageDigestpublic URI getLocation()
null.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.