RIPS API Java Connector

The platform distribution of the connector and utils for the RIPS API.

Лицензия

Лицензия

Категории

Категории

ORM Данные
Группа

Группа

com.ripstech.api
Идентификатор

Идентификатор

connector-platform
Последняя версия

Последняя версия

3.13.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

RIPS API Java Connector
The platform distribution of the connector and utils for the RIPS API.
Ссылка на сайт

Ссылка на сайт

https://www.ripstech.com
Система контроля версий

Система контроля версий

https://github.com/rips/java-connector/tree/master

Скачать connector-platform

Имя Файла Размер
connector-platform-3.13.0.pom
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.ripstech.api/connector-platform/ -->
<dependency>
    <groupId>com.ripstech.api</groupId>
    <artifactId>connector-platform</artifactId>
    <version>3.13.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.ripstech.api/connector-platform/
implementation 'com.ripstech.api:connector-platform:3.13.0'
// https://jarcasting.com/artifacts/com.ripstech.api/connector-platform/
implementation ("com.ripstech.api:connector-platform:3.13.0")
'com.ripstech.api:connector-platform:pom:3.13.0'
<dependency org="com.ripstech.api" name="connector-platform" rev="3.13.0">
  <artifact name="connector-platform" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.ripstech.api', module='connector-platform', version='3.13.0')
)
libraryDependencies += "com.ripstech.api" % "connector-platform" % "3.13.0"
[com.ripstech.api/connector-platform "3.13.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Maven Central

RIPS Java Connector

A Java library to provide easy access to RIPS and all of its features.

Installation

The utils dependency is optional.

Gradle

implementation("com.ripstech.api:connector:3.1.0")
implementation("com.ripstech.api:utils:3.1.0")

Maven

<dependencies>
  ...
  <dependency>
    <groupId>com.ripstech.api</groupId>
    <artifactId>connector</artifactId>
    <version>3.1.0</version>
  </dependency>
    <dependency>
      <groupId>com.ripstech.api</groupId>
      <artifactId>utils</artifactId>
      <version>3.1.0</version>
    </dependency>
  ...
</dependencies>

Use locally

./gradlew clean entity-gen:run api:publishToMavenLocal utils:publishToMavenLocal

Usage

Create API-Connector

String baseUrl = "https://api-3.ripstech.com";
String email = "";
String password = "";

Api api = new Api.Builder(baseUrl)
                 .withOAuthv2(username, password)
                 .build();

Upload and start scan

long appId = 0;
String scanName = "";
File zipFile = ...;

ScanHandler scanHandler = new ScanHandler(api, appId);
scanHandler.uploadFile(zipFile);
long scanId = scanHandler.startScan(scanName).getId();

Getting issues

long appId = 0;
long scanId = 0;
List<Issue> issues = new IssueHandler(api, appId, scanId)
                          .setLogger(System.out::println)
                          .getAllIssues();

Error handling

Exceptions

String version = api.status().get().orThrow(ApiException::new).getVersion();
val version = when(val result = api.status().get().result()) {
                is Failure -> throw result.exception()
                is Success -> result.value.getVersion()
              }

Functional Style

Optional<String> version = api.status().get().map(Status::getVersion);

api.status().get().ifOk(status -> System.out.println(status.getVersion()));
com.ripstech.api

RIPS Technologies

The technology leader in web application security testing

Версии библиотеки

Версия
3.13.0
3.12.2
3.11.1
3.11.0
3.10.0
3.9.0
3.8.0
3.7.0