Package

co.rc.tokenmanager.hmac

base

Permalink

package base

Visibility
  1. Public
  2. All

Type Members

  1. case class HmacConfig(algorithm: String, secret: String, defaultExpTime: TimeDuration) extends Product with Serializable

    Permalink

    Class that represents a valid configuration for json web tokens with HMAC protection.

    Class that represents a valid configuration for json web tokens with HMAC protection.

    algorithm

    Token algorithm. It must be one of these: "HS256", "HS384", "HS512".

    secret

    Shared secret for token validation. For HS256 must be a 256+ bit (32+ byte) secret. For HS384 must be a 384+ bit (48+ byte) secret. For HS512 must be a 512+ bit (64+ byte) secret.

  2. case class TimeDuration(unit: String, length: Int) extends Product with Serializable

    Permalink

    Utility class that defines finite time duration

    Utility class that defines finite time duration

    unit

    Time unit

    length

    Time length value

Value Members

  1. object HmacConfig extends Serializable

    Permalink
  2. object TimeDuration extends Serializable

    Permalink

Ungrouped