Oss Index Client
class OssIndexClient(connectTimeoutSeconds: Long = 15, readTimeoutSeconds: Long = 30, token: String? = null, client: OkHttpClient = OkHttpClient.Builder()
.connectTimeout(connectTimeoutSeconds, TimeUnit.SECONDS)
.readTimeout(readTimeoutSeconds, TimeUnit.SECONDS)
.build(), baseUrl: HttpUrl = "https://api.guide.sonatype.com/".toHttpUrl())
Constructors
Link copied to clipboard
constructor(connectTimeoutSeconds: Long = 15, readTimeoutSeconds: Long = 30, token: String? = null, client: OkHttpClient = OkHttpClient.Builder()
.connectTimeout(connectTimeoutSeconds, TimeUnit.SECONDS)
.readTimeout(readTimeoutSeconds, TimeUnit.SECONDS)
.build(), baseUrl: HttpUrl = "https://api.guide.sonatype.com/".toHttpUrl())
Functions
Link copied to clipboard
fun getVulnerabilities(dependencies: List<ParsedDependency>, failOnError: Boolean = false): Map<String, List<Vulnerability>>