@ThreadSafe public class CentralSearch extends Object
| Constructor and Description |
|---|
CentralSearch(Settings settings)
Creates a NexusSearch for the given repository URL.
|
| Modifier and Type | Method and Description |
|---|---|
List<MavenArtifact> |
searchSha1(String sha1)
Searches the configured Central URL for the given SHA1 hash.
|
public CentralSearch(Settings settings) throws MalformedURLException
settings - the configured settingsMalformedURLException - thrown if the configured URL is invalidpublic List<MavenArtifact> searchSha1(String sha1) throws IOException, TooManyRequestsException
MavenArtifact is populated with the
GAV.sha1 - the SHA-1 hash string for which to searchFileNotFoundException - if the specified artifact is not foundIOException - if it's unable to connect to the specified repositoryTooManyRequestsException - if Central has received too many
requests.Copyright © 2012–2020 OWASP. All rights reserved.