Trait

tsec.common

JKeyGenerator

Related Doc: package common

Permalink

trait JKeyGenerator[A, K[_], KE] extends AnyRef

Our symmetric key generator, abstracted out This is not so easy given keyError is useful to CipherError as well, but duplicated classes is a nono

A

The algorithm to generate the key for

K

the key type, i.e Symmetric cipher or Mac key

KE

the key error type

Attributes
protected[tsec]
Annotations
@deprecated
Deprecated

(Since version 0.0.1-M10) Use SymmetricKeyGen

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JKeyGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def buildKey(key: Array[Byte]): Either[KE, K[A]]

    Permalink

    Build a key for the particular cipher from the provided bytes, based on the key length Todo: In terms of unsafe

  2. abstract def buildKeyUnsafe(key: Array[Byte]): K[A]

    Permalink

    Same as prior, except yolo out the exceptions.

  3. abstract def generateKey(): Either[KE, K[A]]

    Permalink

    Generate a Key, or return a key error for a missing provider Todo: Rename, in terms of unsafe

    Generate a Key, or return a key error for a missing provider Todo: Rename, in terms of unsafe

    returns

    Either the Key, or an error

  4. abstract def generateKeyUnsafe(): K[A]

    Permalink

    Generate key, but with errors uncaught This does not shield you from JCA exceptions

  5. abstract def generator: KeyGenerator

    Permalink

    The generator to return

Concrete 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def buildAndLift[F[_]](rawKey: Array[Byte])(implicit F: Sync[F], ev: <:<[KE, Throwable]): F[K[A]]

    Permalink

    Build a key, lift onto a context F[_]

  6. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def generateLift[F[_]](implicit F: Sync[F]): F[K[A]]

    Permalink

    Lift our generation code into an F[_] Todo: Rename

    Lift our generation code into an F[_] Todo: Rename

    F

    Sync instance

  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped