jwt-java-client

JWT Java Client

Лицензия

Лицензия

Категории

Категории

Безопасность
Группа

Группа

com.clouway.security
Идентификатор

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

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

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

0.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

jwt-java-client
JWT Java Client
Ссылка на сайт

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

https://github.com/clouway/jwt-java-client
Система контроля версий

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

https://github.com/clouway/jwt-java-client

Скачать core

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
com.google.guava : guava jar 18.0
org.json : json jar 20160810
io.jsonwebtoken : jjwt jar 0.7.0

test (4)

Идентификатор библиотеки Тип Версия
com.github.rest-driver : rest-client-driver jar 1.1.45
junit : junit jar 4.11
org.jmock : jmock jar 2.6.0
org.jmock : jmock-junit4 jar 2.8.2

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

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

JWT Java Clients for OAuth2

A Client library for OAuth2 which uses JWT for the generation of access tokens.

OkHttp adapter

  JwtConfig config = new JwtConfig.Builder(
              "jwt email",
              "token endpoint",
              "jwt key")
              .subject("myapp ")
              .build();

  OkHttpClient client = new OkHttpClient.Builder()
    .addInterceptor(
        BearerJwtAuthenticationInterceptor.newInterceptor(
          config
        )
    ).build();  

   // do HTTP call

Google HTTP Client adapter

  JwtConfig config = new JwtConfig.Builder(
              "jwt email",
              "token endpoint",
              "jwt key")
              .subject("myapp ")
              .build();

   NetHttpTransport transport = new NetHttpTransport();
      
   HttpRequestFactory requestFactory = transport.createRequestFactory(
      BearerJwtAuthenticationInterceptor.newInterceptor(config, transport)
   );
  
  // do HTTP call

Maven dependency

    <dependency>
      <groupId>com.clouway.security</groupId>
      <artifactId>jwt-java-client-okhttp</artifactId>
      <version>0.0.2</version>
    </dependency>

Gradle dependency

    compile 'com.clouway.security:jwt-java-client-okhttp:0.0.2'
    compile 'com.clouway.security:jwt-java-client-google:0.0.2'

License

Copyright 2017 clouWay ood.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

com.clouway.security

clouWay ood

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

Версия
0.0.2