Spring Security JWT Library

org.springframework.security : spring-security-jwt

Spring Security JWT is a small utility library for encoding and decoding JSON Web Tokens. It belongs to the family of Spring Security crypto libraries that handle encoding and decoding text as a general, useful thing to be able to do.

[Website] ·
73 usages
· 4k stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-jwt</artifactId>
    <version>1.1.1.RELEASE</version>
</dependency>

How to add dependency in a project

  1. Add dependency to a Maven project
  2. Add dependency to a Gradle project
  3. Add dependency to a SBT Scala project
  4. Add dependency to a Grape project

1. Add dependency to a Maven project

Maven: Add the org.springframework.security:spring-security-jwt library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>org.springframework.security</groupId>
  <artifactId>spring-security-jwt</artifactId>
  <version>1.1.1.RELEASE</version>
</dependency>
</dependencies>

To install org.springframework.security:spring-security-jwt library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the org.springframework.security:spring-security-jwt library to the dependencies section of your build.gradle file:

dependencies {
implementation 'org.springframework.security:spring-security-jwt:1.1.1.RELEASE'
}

Gradle Kotlin DSL: Add the org.springframework.security:spring-security-jwt library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("org.springframework.security:spring-security-jwt:1.1.1.RELEASE")
}

3. Add dependency to a SBT Scala project

Scala: Add the org.springframework.security:spring-security-jwt library to your build.sbt file:

libraryDependencies += "org.springframework.security" % "spring-security-jwt" % "1.1.1.RELEASE"

4. Add dependency to a Grape project

Grape: Add an annotation org.springframework.security:spring-security-jwt library to your groovy script file:

@Grapes(
    @Grab('org.springframework.security:spring-security-jwt:1.1.1.RELEASE')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (3)

Group / Artifact Usage
junit » junit 63,836
org.mockito » mockito-all 6,469
org.jruby » jruby 59