Interface ResourceServer


public interface ResourceServer
Represents a resource server, whose resources are managed and protected. A resource server is basically an existing client application in Keycloak that will also act as a resource server.
Author:
Pedro Igor
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns id of a client that this ResourceServer is associated with
    org.keycloak.representations.idm.authorization.DecisionStrategy
    Returns the DecisionStrategy configured for this instance.
    Returns the unique identifier for this instance.
    org.keycloak.representations.idm.authorization.PolicyEnforcementMode
    Returns the PolicyEnforcementMode configured for this instance.
    boolean
    Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.
    void
    setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)
    Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.
    void
    setDecisionStrategy(org.keycloak.representations.idm.authorization.DecisionStrategy decisionStrategy)
    Defines a DecisionStrategy for this instance, indicating how permissions should be granted depending on the given decisionStrategy.
    void
    setPolicyEnforcementMode(org.keycloak.representations.idm.authorization.PolicyEnforcementMode enforcementMode)
    Defines a PolicyEnforcementMode for this instance.
  • Method Details

    • getId

      String getId()
      Returns the unique identifier for this instance.
      Returns:
      the unique identifier for this instance
    • isAllowRemoteResourceManagement

      boolean isAllowRemoteResourceManagement()
      Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.
      Returns:
      true if the resource server is allowed to managed them remotely
    • setAllowRemoteResourceManagement

      void setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)
      Indicates if the resource server is allowed to manage its own resources remotely using the Protection API.
      Parameters:
      allowRemoteResourceManagement - true if the resource server is allowed to managed them remotely
    • getPolicyEnforcementMode

      org.keycloak.representations.idm.authorization.PolicyEnforcementMode getPolicyEnforcementMode()
      Returns the PolicyEnforcementMode configured for this instance.
      Returns:
      the PolicyEnforcementMode configured for this instance.
    • setPolicyEnforcementMode

      void setPolicyEnforcementMode(org.keycloak.representations.idm.authorization.PolicyEnforcementMode enforcementMode)
      Defines a PolicyEnforcementMode for this instance.
      Parameters:
      enforcementMode - one of the available options in PolicyEnforcementMode
    • setDecisionStrategy

      void setDecisionStrategy(org.keycloak.representations.idm.authorization.DecisionStrategy decisionStrategy)
      Defines a DecisionStrategy for this instance, indicating how permissions should be granted depending on the given decisionStrategy.
      Parameters:
      decisionStrategy - the decision strategy
    • getDecisionStrategy

      org.keycloak.representations.idm.authorization.DecisionStrategy getDecisionStrategy()
      Returns the DecisionStrategy configured for this instance.
      Returns:
      the decision strategy
    • getClientId

      String getClientId()
      Returns id of a client that this ResourceServer is associated with
      Returns:
      id of client