Trait

eu.shiftforward.apso.io

FileDescriptorCredentials

Related Doc: package io

Permalink

trait FileDescriptorCredentials[Conf, CredObj] extends AnyRef

Trait that describes how a FileDescriptor extracts credentials from a config.

The config file must follow the following structure:

{
  default = <protocolCredentials>
  ids {
    id1 = <protocolCredentials>
    id2 = <protocolCredentials>
  }
}

The default is optional and is used as a fallback when the file descriptor id matches none of the credentials ids.

Conf

The type of credential config that is extracted

CredObj

The type of credential object that is extracted

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

Abstract Value Members

  1. abstract def createCredentials(fdId: String, fdConfig: Conf): CredObj

    Permalink

    Creates a credential object T from the file descriptor specific config

    Creates a credential object T from the file descriptor specific config

    fdConfig

    the config containing specific keys required to create a credential object T for the file descriptor

    returns

    the credential object T

    Attributes
    protected
  2. abstract def id(path: String): String

    Permalink

    Returns an unique id from the given file descriptor path to use when accessing the config

    Returns an unique id from the given file descriptor path to use when accessing the config

    path

    the file descriptor path

    returns

    an unique id from the given file descriptor path

    Attributes
    protected

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 clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def read(conf: Protocol[Conf], path: String): Option[CredObj]

    Permalink

    Reads from the config file and given the file descriptor path converted to an unique id by the ìd function, extracts a credentials object T.

    Reads from the config file and given the file descriptor path converted to an unique id by the ìd function, extracts a credentials object T.

    conf

    the config file with the credentials keys

    path

    the file descriptor path to be converted to an unique id

    returns

    the credential object T

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped