Class StorageId

java.lang.Object
org.keycloak.storage.StorageId
All Implemented Interfaces:
Serializable

public class StorageId extends Object implements Serializable
Version:
$Revision: 1 $
Author:
Bill Burke
See Also:
  • Constructor Details

    • StorageId

      public StorageId(String id)
    • StorageId

      public StorageId(String providerId, String externalId)
  • Method Details

    • isLocal

      public boolean isLocal()
    • getId

      public String getId()
    • getProviderId

      public String getProviderId()
    • getExternalId

      public String getExternalId()
    • keycloakId

      public static String keycloakId(ComponentModel model, String externalId)
      generate the id string that should be returned by UserModel.getId()
      Parameters:
      model -
      externalId - id used to resolve user in external storage
      Returns:
    • externalId

      public static String externalId(String keycloakId)
    • providerId

      public static String providerId(String keycloakId)
    • isLocalStorage

      public static boolean isLocalStorage(String id)
    • resolveProviderId

      public static String resolveProviderId(UserModel user)
      Deprecated.
      Use providerId(String) instead.
    • isLocalStorage

      public static boolean isLocalStorage(UserModel user)
      Deprecated.
    • resolveProviderId

      public static String resolveProviderId(ClientModel client)
      Deprecated.
      Use providerId(String) instead.
    • isLocalStorage

      public static boolean isLocalStorage(ClientModel client)
      Deprecated.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object