Class MicrosoftGraphPasswordProfile
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPasswordProfile
passwordProfile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphPasswordProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: passwordProfile.Get the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.Get the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password.password()Get the password property: The password for the user.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: passwordProfile.withForceChangePasswordNextSignIn(Boolean forceChangePasswordNextSignIn) Set the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.withForceChangePasswordNextSignInWithMfa(Boolean forceChangePasswordNextSignInWithMfa) Set the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password.withPassword(String password) Set the password property: The password for the user.
-
Constructor Details
-
MicrosoftGraphPasswordProfile
public MicrosoftGraphPasswordProfile()Creates an instance of MicrosoftGraphPasswordProfile class.
-
-
Method Details
-
forceChangePasswordNextSignIn
Get the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.- Returns:
- the forceChangePasswordNextSignIn value.
-
withForceChangePasswordNextSignIn
public MicrosoftGraphPasswordProfile withForceChangePasswordNextSignIn(Boolean forceChangePasswordNextSignIn) Set the forceChangePasswordNextSignIn property: true if the user must change her password on the next login; otherwise false.- Parameters:
forceChangePasswordNextSignIn- the forceChangePasswordNextSignIn value to set.- Returns:
- the MicrosoftGraphPasswordProfile object itself.
-
forceChangePasswordNextSignInWithMfa
Get the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false.- Returns:
- the forceChangePasswordNextSignInWithMfa value.
-
withForceChangePasswordNextSignInWithMfa
public MicrosoftGraphPasswordProfile withForceChangePasswordNextSignInWithMfa(Boolean forceChangePasswordNextSignInWithMfa) Set the forceChangePasswordNextSignInWithMfa property: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false.- Parameters:
forceChangePasswordNextSignInWithMfa- the forceChangePasswordNextSignInWithMfa value to set.- Returns:
- the MicrosoftGraphPasswordProfile object itself.
-
password
Get the password property: The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user’s passwordPolicies property. By default, a strong password is required.- Returns:
- the password value.
-
withPassword
Set the password property: The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user’s passwordPolicies property. By default, a strong password is required.- Parameters:
password- the password value to set.- Returns:
- the MicrosoftGraphPasswordProfile object itself.
-
additionalProperties
Get the additionalProperties property: passwordProfile.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphPasswordProfile withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: passwordProfile.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphPasswordProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-