cx-spring-boot-sdk

Checkmarx Java Spring Boot SDK

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

com.github.checkmarx-ts
Идентификатор

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

cx-spring-boot-sdk
Последняя версия

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

0.4.47
Дата

Дата

Тип

Тип

jar
Описание

Описание

cx-spring-boot-sdk
Checkmarx Java Spring Boot SDK
Ссылка на сайт

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

https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/cx-spring-boot-sdk
Система контроля версий

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

https://github.com/checkmarx-ts/checkmarx-spring-boot-java-sdk.git

Скачать cx-spring-boot-sdk

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

<!-- https://jarcasting.com/artifacts/com.github.checkmarx-ts/cx-spring-boot-sdk/ -->
<dependency>
    <groupId>com.github.checkmarx-ts</groupId>
    <artifactId>cx-spring-boot-sdk</artifactId>
    <version>0.4.47</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.checkmarx-ts/cx-spring-boot-sdk/
implementation 'com.github.checkmarx-ts:cx-spring-boot-sdk:0.4.47'
// https://jarcasting.com/artifacts/com.github.checkmarx-ts/cx-spring-boot-sdk/
implementation ("com.github.checkmarx-ts:cx-spring-boot-sdk:0.4.47")
'com.github.checkmarx-ts:cx-spring-boot-sdk:jar:0.4.47'
<dependency org="com.github.checkmarx-ts" name="cx-spring-boot-sdk" rev="0.4.47">
  <artifact name="cx-spring-boot-sdk" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.checkmarx-ts', module='cx-spring-boot-sdk', version='0.4.47')
)
libraryDependencies += "com.github.checkmarx-ts" % "cx-spring-boot-sdk" % "0.4.47"
[com.github.checkmarx-ts/cx-spring-boot-sdk "0.4.47"]

Зависимости

compile (13)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter jar 2.2.4.RELEASE
org.springframework.boot : spring-boot-starter-web-services jar 2.2.4.RELEASE
com.checkmarx : cx-client-common jar 2020.3.87
org.apache.httpcomponents : httpclient jar 4.5.11
com.fasterxml.jackson.core : jackson-annotations jar
org.apache.commons : commons-lang3 jar 3.9
org.json : json jar 20190722
com.google.guava : guava jar 28.2-jre
org.springframework.ws : spring-ws-core jar 3.0.8.RELEASE
org.projectlombok : lombok jar 1.18.12
org.modelmapper : modelmapper jar 2.3.0
org.codehaus.groovy : groovy jar 3.0.4
com.typesafe : config jar 1.3.3

test (1)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-test jar 2.2.4.RELEASE

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

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

checkmarx-spring-boot-java-sdk

Java Spring Boot SDK for Checkmarx

Artifacts

Maven artifacts are stored on Sonatype nexus repository manager (synced to maven central) https://oss.sonatype.org/service/local/repositories/releases/content/com/github/checkmarx-ts/cx-spring-boot-sdk/x.x.x/cx-spring-boot-sdk-x.x.x.jar

Note: Check maven version in current pom.xml

Build

mvnw clean build

Note: add -DskipTests -Dgpg.skip flags to skip integration testing and gpg code signing (required for Sonatype)

Usage

Gradle

Include the following dependency in your maven project

compile('com.github.checkmarx-ts:cx-spring-boot-sdk:X.X.X')

Maven

Include the following dependency in your maven project

<dependency>
    <groupId>com.github.checkmarx-ts</groupId>
    <artifactId>cx-spring-boot-sdk</artifactId>
    <version>X.X.X</version>
</dependency>

Main Spring Boot Application

In the main spring boot application entry endpoint the following package scan must be added: com.checkmarx.sdk

@SpringBootApplication(scanBasePackages={"com.checkmarx.sdk","xxxx.xxxx.xxxx", ...})

CxClient Interface usage

Inject the dependency of CxClient / CxAuthClient / CxOsaClient (WIP). This will inject the service bean to make calls to Checkmarx with

@Component
@Command
public class SampleComponent {
    private static final Logger log = org.slf4j.LoggerFactory.getLogger(SampleComponent.class);
    private final CxClient cxClient;

Configuration

Checkmarx Specific properties are loaded from CxProperties class (config package).

checkmarx:
  version: 9.0 #default is 8.9
  username: xxxxx
  password: xxxxx
  client-secret: xxxxx 
  base-url: http://cx.local
  multi-tenant: true
  configuration: Default Configuration
  scan-preset: Checkmarx Default
  team: \CxServer\SP\Checkmarx #team path separator is  / in 9.0+ 
  url: ${checkmarx.base-url}/cxrestapi
#WSDL Config
  portal-url: ${checkmarx.base-url}/cxwebinterface/Portal/CxWebService.asmx

These values can be injected at runtime by using environment variables and/or command line parameters. See the following: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html

Note: The only required properties are username/password/base-url/team

Sample Usage

https://github.com/checkmarx-ts/cx-java-util

com.github.checkmarx-ts

Checkmarx TS

Checkmarx TS

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

Версия
0.4.47
0.4.46
0.4.45
0.4.44
0.4.43
0.4.42
0.4.41
0.4.40
0.4.39
0.4.38
0.4.37
0.4.36
0.4.35
0.4.34
0.4.33
0.4.32
0.4.31
0.4.30
0.4.29
0.4.28
0.4.27
0.4.26
0.4.25
0.4.24
0.4.23
0.4.22
0.4.21
0.4.20
0.4.19
0.4.18
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.2
0.3.1
0.3.0
0.2.1
0.2
0.1