Package org.keycloak.storage
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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
static String
externalId(String keycloakId)
String
getExternalId()
String
getId()
String
getProviderId()
int
hashCode()
boolean
isLocal()
static boolean
isLocalStorage(String id)
static boolean
isLocalStorage(ClientModel client)
Deprecated.UseisLocalStorage(String)
instead.static boolean
isLocalStorage(UserModel user)
Deprecated.UseisLocalStorage(String)
instead.static String
keycloakId(ComponentModel model, String externalId)
generate the id string that should be returned by UserModel.getId()static String
providerId(String keycloakId)
static String
resolveProviderId(ClientModel client)
Deprecated.UseproviderId(String)
instead.static String
resolveProviderId(UserModel user)
Deprecated.UseproviderId(String)
instead.String
toString()
-
-
-
Method Detail
-
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:
-
isLocalStorage
public static boolean isLocalStorage(String id)
-
resolveProviderId
public static String resolveProviderId(UserModel user)
Deprecated.UseproviderId(String)
instead.
-
isLocalStorage
public static boolean isLocalStorage(UserModel user)
Deprecated.UseisLocalStorage(String)
instead.
-
resolveProviderId
public static String resolveProviderId(ClientModel client)
Deprecated.UseproviderId(String)
instead.
-
isLocalStorage
public static boolean isLocalStorage(ClientModel client)
Deprecated.UseisLocalStorage(String)
instead.
-
-