jwt-java-client

JWT Java Client

License

License

Categories

Categories

Security
GroupId

GroupId

com.clouway.security
ArtifactId

ArtifactId

core
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

jwt-java-client
JWT Java Client
Project URL

Project URL

https://github.com/clouway/jwt-java-client
Source Code Management

Source Code Management

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

Download core

How to add to project

<!-- 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"]

Dependencies

compile (3)

Group / Artifact Type Version
com.google.guava : guava jar 18.0
org.json : json jar 20160810
io.jsonwebtoken : jjwt jar 0.7.0

test (4)

Group / Artifact Type Version
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

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.0.2