https-utils

HTTP server security utilities for VOMS proxy support

Лицензия

Лицензия

Группа

Группа

org.italiangrid
Идентификатор

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

https-utils
Последняя версия

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

0.4.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

https-utils
HTTP server security utilities for VOMS proxy support
Ссылка на сайт

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

https://github.com/italiangrid/https-utils
Система контроля версий

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

https://github.com/italiangrid/https-utils

Скачать https-utils

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

<!-- https://jarcasting.com/artifacts/org.italiangrid/https-utils/ -->
<dependency>
    <groupId>org.italiangrid</groupId>
    <artifactId>https-utils</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.italiangrid/https-utils/
implementation 'org.italiangrid:https-utils:0.4.0'
// https://jarcasting.com/artifacts/org.italiangrid/https-utils/
implementation ("org.italiangrid:https-utils:0.4.0")
'org.italiangrid:https-utils:jar:0.4.0'
<dependency org="org.italiangrid" name="https-utils" rev="0.4.0">
  <artifact name="https-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.italiangrid', module='https-utils', version='0.4.0')
)
libraryDependencies += "org.italiangrid" % "https-utils" % "0.4.0"
[org.italiangrid/https-utils "0.4.0"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
ch.qos.logback : logback-core jar 1.0.9
ch.qos.logback : logback-classic jar 1.0.9
org.eclipse.jetty.aggregate : jetty-all-server jar 8.1.9.v20130131
org.slf4j : slf4j-api jar 1.7.2
org.slf4j : log4j-over-slf4j jar 1.7.2
org.italiangrid : voms-api-java jar 3.1.0

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.10

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

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

Proxy certificate enabled HTTP server and Servlet container

Build Status

Convenience library for getting a Jetty Server configured with an SSL connector that supports proxy certificates (http://www.ietf.org/rfc/rfc3820.txt).

It uses the Java binding of the caNl library developed in the EMI project (http://www.eu-emi.eu/).

Install

This is not yet on a Maven repository. You have to compile and install locally

mvn install

before you can reference it in your Maven projects

<dependency>
  <groupId>org.italiangrid</groupId>
  <artifactId>https-utils</artifactId>
  <version>0.0.1-SNAPSHOT</version>
</dependency>    

Usage

Create an SSLOption object providing the location of the service credentials, and the directory containing the trusted certification authorities

SSLOptions options = new SSLOptions();
options.setCertificateFile("/etc/grid-security/hostcert.pem");
options.setKeyFile("/etc/grid-security/hostkey.pem");
options.setTrustStoreDirectory("/etc/grid-security/certificates");

Then get an org.eclipse.jetty.server.Server object and use it as usual

Server server = ServerFactory.newServer("localhost", 443, options);

s.setHandler(new HelloHandler());

s.start();
s.join();   

The SSLOption class also provides methods for configuring whether client authentication must be requested or required

options.setWantClientAuth(wantClientAuth)
options.setNeedClientAuth(needClientAuth)

and for setting the time interval for refreshing the certification authorities information

options.setTrustStoreRefreshIntervalInMsec(60000L);
org.italiangrid

Italian Grid

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

Версия
0.4.0
0.3.6
0.3.5.rc1