jwt-java-client

JWT Java Client

License

License

Categories

Categories

Java Languages Security CLI User Interface
GroupId

GroupId

com.clouway.security
ArtifactId

ArtifactId

jwt-java-client-testing
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 jwt-java-client-testing

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
com.clouway.security : core jar 0.0.2
com.google.guava : guava jar 18.0
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