Keycloak 18 change user password and email from the application

Hi All! I’m new to Keycloak and I need to allow users to change their email address and password directly from my application.

Is it possible to implement this with the following Java library?

<dependency>
    <groupId>org.keycloak</groupId>
    <artifactId>keycloak-admin-client</artifactId>
    <version>18.0.2</version>
</dependency>

Could you please show an example of such actions?