net.liftweb.util

SecurityHelpers

trait SecurityHelpers extends AnyRef

The SecurityHelpers trait provides functions to:

Self Type
SecurityHelpers with StringHelpers with IoHelpers
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SecurityHelpers
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def base64Decode(in: String): Array[Byte]

    decode a String in Base 64

  8. def base64Encode(in: Array[Byte]): String

    encode a Byte array in Base 64

  9. def base64EncodeURLSafe(in: Array[Byte]): String

    encode a Byte array in Base 64 in a way that's safe for use in URLs

  10. def clone(): AnyRef

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

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

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

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

    Definition Classes
    AnyRef → Any
  15. def hash(in: String): String

    create a SHA hash from a String

  16. def hash(in: Array[Byte]): Array[Byte]

    create a SHA hash from a Byte array

  17. def hash256(in: String): String

    create a SHA-256 hash from a String

  18. def hash256(in: Array[Byte]): Array[Byte]

    create a SHA-256 hash from a Byte array

  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def hashHex(in: String): String

    create a SHA hash from a String

  21. def hexDecode(str: String): Array[Byte]

  22. def hexDigest(in: Array[Byte]): String

    create an hex encoded SHA hash from a Byte array

  23. def hexDigest256(in: Array[Byte]): String

    create an hex encoded SHA-256 hash from a Byte array

  24. def hexEncode(in: Array[Byte]): String

    encode a Byte array as hexadecimal characters

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def md5(in: String): String

    create a MD5 digest from a String

  27. def md5(in: Array[Byte]): Array[Byte]

    create a MD5 digest from a Byte array

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def randomInt(mod: Int): Int

    return a random int modulo a number

  32. def randomLong(mod: Long): Long

    return a random Long modulo a number

  33. def secureEquals(s1: Array[Byte], s2: Array[Byte]): Boolean

    Compare two byte arrays in a way that does not vary if the arrays are determined to be not equal early (test every byte.

    Compare two byte arrays in a way that does not vary if the arrays are determined to be not equal early (test every byte... avoids timing attackes

  34. def secureEquals(s1: String, s2: String): Boolean

    Compare two strings in a way that does not vary if the strings are determined to be not equal early (test every byte.

    Compare two strings in a way that does not vary if the strings are determined to be not equal early (test every byte... avoids timing attackes

  35. def shouldShow(percent: Double): Boolean

    return true only 'percent' times when asked repeatedly.

    return true only 'percent' times when asked repeatedly. This function is used in the Skittr example to get a random set of users

    percent

    percentage as a double number <= 1.0

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

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any