org.keycloak.models.jpa

## Class OAuthClientAdapter

- java.lang.Object
- - org.keycloak.models.jpa.ClientAdapter
  - - org.keycloak.models.jpa.OAuthClientAdapter

- All Implemented Interfaces:
    ClientModel, OAuthClientModel

      public class OAuthClientAdapter
      extends ClientAdapter
      implements OAuthClientModel

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected OAuthClientEntity` | `oAuthClientEntity`

    - ### Fields inherited from class org.keycloak.models.jpa.ClientAdapter

      `em, entity, realm`

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

      `PRIVATE_KEY, PUBLIC_KEY, X509CERTIFICATE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `OAuthClientAdapter(RealmModel realm, OAuthClientEntity entity, javax.persistence.EntityManager em)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `int` | `hashCode()`
    `boolean` | `isDirectGrantsOnly()`
    `void` | `setClientId(String id)`
    `void` | `setDirectGrantsOnly(boolean flag)`

    - ### Methods inherited from class org.keycloak.models.jpa.ClientAdapter

      `addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getAllowedClaimsMask, getAttribute, getAttributes, getClientId, getEntity, getId, getNotBefore, getProtocol, getRealm, getRealmScopeMappingQuery, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, hasScope, isEnabled, isFullScopeAllowed, isPublicClient, removeAttribute, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setAttribute, setEnabled, setFullScopeAllowed, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret`

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

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

    - ### Methods inherited from interface org.keycloak.models.ClientModel

      `addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getAllowedClaimsMask, getAttribute, getAttributes, getClientId, getId, getNotBefore, getProtocol, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, hasScope, isEnabled, isFullScopeAllowed, isPublicClient, removeAttribute, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setAttribute, setEnabled, setFullScopeAllowed, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret`

- - ### Field Detail

    - #### oAuthClientEntity

          protected final OAuthClientEntity oAuthClientEntity

  - ### Constructor Detail

    - #### OAuthClientAdapter

          public OAuthClientAdapter(RealmModel realm,
                            OAuthClientEntity entity,
                            javax.persistence.EntityManager em)

  - ### Method Detail

    - #### setClientId

          public void setClientId(String id)

      Specified by:
        `setClientId` in interface `OAuthClientModel`

    - #### isDirectGrantsOnly

          public boolean isDirectGrantsOnly()

      Specified by:
        `isDirectGrantsOnly` in interface `ClientModel`

    - #### setDirectGrantsOnly

          public void setDirectGrantsOnly(boolean flag)

      Specified by:
        `setDirectGrantsOnly` in interface `ClientModel`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `ClientAdapter`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `ClientAdapter`

Copyright © 2015. All Rights Reserved.