class JWTOptions extends AnyRef
Options related to creation of new tokens.
If any expiresInMinutes, audience, subject, issuer are not provided, there is no default. The jwt generated won't include those properties in the payload.
Generated JWTs will include an iat claim by default unless noTimestamp is specified.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JWTOptions
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new JWTOptions(_asJava: ext.auth.jwt.JWTOptions)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addAudience(value: String): JWTOptions
The target audience of this token
- def addHeader(key: String, value: String): JWTOptions
-
def
addPermission(value: String): JWTOptions
The permissions of this token.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: ext.auth.jwt.JWTOptions
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def getAlgorithm: String
- def getAudience: Buffer[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getExpiresInMinutes: Long
- def getExpiresInSeconds: Long
- def getIssuer: String
- def getNoTimestamp: Boolean
- def getSubject: String
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
setAlgorithm(value: String): JWTOptions
The algorithm to use, it should be one of the alias [HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512]
-
def
setAudience(value: Buffer[String]): JWTOptions
The target audience of this token
-
def
setExpiresInMinutes(value: Long): JWTOptions
The expiration time for the token in minutes
-
def
setExpiresInSeconds(value: Long): JWTOptions
The expiration time for the token in seconds
-
def
setIssuer(value: String): JWTOptions
The issuer of this token
-
def
setNoTimestamp(value: Boolean): JWTOptions
Disable the generation of issued at claim
- def setPermissions(value: Buffer[String]): JWTOptions
-
def
setSubject(value: String): JWTOptions
The subject of this token
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )