org.keycloak.examples.federation.properties

## Class ReadonlyUserModelProxy

- java.lang.Object
- - org.keycloak.models.utils.UserModelDelegate
  - - org.keycloak.examples.federation.properties.ReadonlyUserModelProxy

- All Implemented Interfaces:
    UserModel

      public class ReadonlyUserModelProxy
      extends UserModelDelegate

  Readonly proxy for a UserModel that prevents passwords from being updated.
  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.keycloak.models.UserModel

      `UserModel.RequiredAction`

  - ### Field Summary

    - ### Fields inherited from class org.keycloak.models.utils.UserModelDelegate

      `delegate`

    - ### Fields inherited from interface org.keycloak.models.UserModel

      `EMAIL, FIRST_NAME, LAST_NAME, USERNAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReadonlyUserModelProxy(UserModel delegate)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setUsername(String username)`
    `void` | `updateCredential(UserCredentialModel cred)`
    `void` | `updateCredentialDirectly(UserCredentialValueModel cred)`

    - ### Methods inherited from class org.keycloak.models.utils.UserModelDelegate

      `addRequiredAction, deleteRoleMapping, getApplicationRoleMappings, getAttribute, getAttributes, getCredentialsDirectly, getEmail, getFederationLink, getFirstName, getId, getLastName, getRealmRoleMappings, getRequiredActions, getRoleMappings, getUsername, grantRole, hasRole, isEmailVerified, isEnabled, isTotp, removeAttribute, removeRequiredAction, setAttribute, setEmail, setEmailVerified, setEnabled, setFederationLink, setFirstName, setLastName, setTotp`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ReadonlyUserModelProxy

          public ReadonlyUserModelProxy(UserModel delegate)

  - ### Method Detail

    - #### setUsername

          public void setUsername(String username)

      Specified by:
        `setUsername` in interface `UserModel`
      Overrides:
        `setUsername` in class `UserModelDelegate`

    - #### updateCredentialDirectly

          public void updateCredentialDirectly(UserCredentialValueModel cred)

      Specified by:
        `updateCredentialDirectly` in interface `UserModel`
      Overrides:
        `updateCredentialDirectly` in class `UserModelDelegate`

    - #### updateCredential

          public void updateCredential(UserCredentialModel cred)

      Specified by:
        `updateCredential` in interface `UserModel`
      Overrides:
        `updateCredential` in class `UserModelDelegate`

Copyright © 2014. All Rights Reserved.