Object

pdi.jwt

JwtUtils

Related Doc: package jwt

Permalink

object JwtUtils

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JwtUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ECDSA: String

    Permalink
  5. val ENCODING: String

    Permalink
  6. val PROVIDER: String

    Permalink
  7. val RSA: String

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def bytify(str: String): Array[Byte]

    Permalink

    Convert a string to its corresponding array of bytes using the default encoding.

    Convert a string to its corresponding array of bytes using the default encoding.

    str

    the string to convert

    returns

    the final array of bytes

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashToJson(hash: Seq[(String, Any)]): String

    Permalink

    Convert a sequence of tuples to a JSON object

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def mergeJson(json: String, jsonSeq: String*): String

    Permalink

    Merge multiple JSON strings to a unique one

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def seqToJson(seq: Seq[Any]): String

    Permalink

    Convert a sequence to a JSON array

  23. def sign(data: String, key: String, algorithm: JwtAlgorithm): Array[Byte]

    Permalink

    Alias to sign using a String data which will be converted to an array of bytes.

  24. def sign(data: Array[Byte], key: String, algorithm: JwtAlgorithm): Array[Byte]

    Permalink

    Will try to sign some given data by parsing the provided key, if parsing fail, please consider retrieving the SecretKey or the PrivateKey on your side and then use another "sign" method.

  25. def sign(data: String, key: PrivateKey, algorithm: JwtAsymetricAlgorithm): Array[Byte]

    Permalink
  26. def sign(data: Array[Byte], key: PrivateKey, algorithm: JwtAsymetricAlgorithm): Array[Byte]

    Permalink

    Generate the signature for a given data using the key and RSA or ECDSA algorithm provided.

  27. def sign(data: String, key: SecretKey, algorithm: JwtHmacAlgorithm): Array[Byte]

    Permalink
  28. def sign(data: Array[Byte], key: SecretKey, algorithm: JwtHmacAlgorithm): Array[Byte]

    Permalink

    Generate the signature for a given data using the key and HMAC algorithm provided.

  29. def stringify(arr: Array[Byte]): String

    Permalink

    Convert an array of bytes to its corresponding string using the default encoding.

    Convert an array of bytes to its corresponding string using the default encoding.

    arr

    the array of bytes to transform

    returns

    the final string

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def verify(data: String, signature: String, key: String, algorithm: JwtAlgorithm): Boolean

    Permalink

    Alias for verify

  33. def verify(data: Array[Byte], signature: Array[Byte], key: String, algorithm: JwtAlgorithm): Boolean

    Permalink

    Will try to check if a signature is valid for a given data by parsing the provided key, if parsing fail, please consider retrieving the SecretKey or the PublicKey on your side and then use another "verify" method.

  34. def verify(data: Array[Byte], signature: Array[Byte], key: PublicKey, algorithm: JwtAsymetricAlgorithm): Boolean

    Permalink

    Check if a signature is valid for a given data using the key and the RSA or ECDSA algorithm provided.

  35. def verify(data: Array[Byte], signature: Array[Byte], key: SecretKey, algorithm: JwtHmacAlgorithm): Boolean

    Permalink

    Check if a signature is valid for a given data using the key and the HMAC algorithm provided.

  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped