Class CredentialsContainerKt
-
- All Implemented Interfaces:
public final class CredentialsContainerKt
-
-
Method Summary
Modifier and Type Method Description final static Unitcredentials(CredentialsContainer $self, Function1<PasswordCredentials, Unit> configAction)Configures the username/password credentials for this service using the supplied action. final static <T extends Credentials> Unitcredentials(CredentialsContainer $self, KClass<T> type, Function1<T, Unit> configAction)Configures the credentials for this service using the supplied action. -
-
Method Detail
-
credentials
final static Unit credentials(CredentialsContainer $self, Function1<PasswordCredentials, Unit> configAction)
Configures the username/password credentials for this service using the supplied action.
Extension method for Kotlin support.
- Parameters:
configAction- a lambda action to configure the credentials
-
credentials
final static <T extends Credentials> Unit credentials(CredentialsContainer $self, KClass<T> type, Function1<T, Unit> configAction)
Configures the credentials for this service using the supplied action.
Extension method for Kotlin support.
- Parameters:
type- the type of credentialsconfigAction- the lambda action to configure the credentials
-
-
-
-