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
- Alphabetic
- By Inheritance
- FileDescriptorCredentials
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
createCredentials(fdId: String, fdConfig: Conf): CredObj
Creates a credential object
Tfrom the file descriptor specific configCreates a credential object
Tfrom the file descriptor specific config- fdConfig
the config containing specific keys required to create a credential object
Tfor the file descriptor- returns
the credential object
T
- Attributes
- protected
-
abstract
def
id(path: String): String
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
read(conf: Protocol[Conf], path: String): Option[CredObj]
Reads from the config file and given the file descriptor path converted to an unique id by the
ìdfunction, extracts a credentials objectT.Reads from the config file and given the file descriptor path converted to an unique id by the
ìdfunction, extracts a credentials objectT.- 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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )