org.keycloak.authorization.jpa.store

## Class JPAResourceServerStore

- java.lang.Object
- - org.keycloak.authorization.jpa.store.JPAResourceServerStore

- All Implemented Interfaces:
    ResourceServerStore

      public class JPAResourceServerStore
      extends Object
      implements ResourceServerStore

  Author:
    Pedro Igor

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JPAResourceServerStore(javax.persistence.EntityManager entityManager, AuthorizationProvider provider)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ResourceServer` | `create(String clientId)` Creates a `ResourceServer` instance backed by this persistent storage implementation.
    `void` | `delete(String id)` Removes a `ResourceServer` instance, with the given `id` from the persistent storage.
    `ResourceServer` | `findById(String id)` Returns a `ResourceServer` instance based on its identifier.

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

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

- - ### Constructor Detail

    - #### JPAResourceServerStore

          public JPAResourceServerStore(javax.persistence.EntityManager entityManager,
                                        AuthorizationProvider provider)

  - ### Method Detail

    - #### create

          public ResourceServer create(String clientId)

      Description copied from interface: `ResourceServerStore`

      Creates a `ResourceServer` instance backed by this persistent storage implementation.

      Specified by:
        `create` in interface `ResourceServerStore`
      Parameters:
        `clientId` - the client id acting as a resource server
      Returns:
        an instance backed by the underlying storage implementation

    - #### delete

          public void delete(String id)

      Description copied from interface: `ResourceServerStore`
      Removes a `ResourceServer` instance, with the given `id` from the persistent storage.
      Specified by:
        `delete` in interface `ResourceServerStore`
      Parameters:
        `id` - the identifier of an existing resource server instance

    - #### findById

          public ResourceServer findById(String id)

      Description copied from interface: `ResourceServerStore`
      Returns a `ResourceServer` instance based on its identifier.
      Specified by:
        `findById` in interface `ResourceServerStore`
      Parameters:
        `id` - the identifier of an existing resource server instance
      Returns:
        the resource server instance with the given identifier or null if no instance was found

Copyright © 2021 JBoss by Red Hat. All rights reserved.