Interface PasswordCredential.DefinitionStages.WithConsumer<ParentT>
- Type Parameters:
ParentT- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
PasswordCredential.Definition<ParentT>,PasswordCredential.DefinitionStages.Blank<ParentT>,PasswordCredential.DefinitionStages.WithAttach<ParentT>
- Enclosing interface:
- PasswordCredential.DefinitionStages
public static interface PasswordCredential.DefinitionStages.WithConsumer<ParentT>
A credential definition stage allowing consuming the credential after creation.
-
Method Summary
Modifier and TypeMethodDescriptionwithPasswordConsumer(Consumer<? super PasswordCredential> passwordConsumer) Consumes the credential after creation.
-
Method Details
-
withPasswordConsumer
PasswordCredential.DefinitionStages.WithAttach<ParentT> withPasswordConsumer(Consumer<? super PasswordCredential> passwordConsumer) Consumes the credential after creation. Note: it is the only way to get secret from the credential.- Parameters:
passwordConsumer- a consumer to consume password credential- Returns:
- the next stage in credential definition
-