Interface PasswordCredential.DefinitionStages.WithDuration<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.WithDuration<ParentT>The credential definition stage allowing the duration of key validity to be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PasswordCredential.DefinitionStages.WithAttach<ParentT>withDuration(Duration duration)Specifies the duration for which password or key would be valid.
-
-
-
Method Detail
-
withDuration
PasswordCredential.DefinitionStages.WithAttach<ParentT> withDuration(Duration duration)
Specifies the duration for which password or key would be valid. Default value is 1 year.- Parameters:
duration- the duration of validity- Returns:
- the next stage in credential definition
-
-