public class StorageId extends Object implements Serializable
Constructor and Description |
---|
StorageId(String id) |
StorageId(String providerId,
String externalId) |
Modifier and Type | Method and Description |
---|---|
static String |
externalId(String keycloakId) |
String |
getExternalId() |
String |
getId() |
String |
getProviderId() |
boolean |
isLocal() |
static boolean |
isLocalStorage(ClientModel client) |
static boolean |
isLocalStorage(String id) |
static boolean |
isLocalStorage(UserModel user) |
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) |
static String |
resolveProviderId(UserModel user) |
public StorageId(String id)
public static String keycloakId(ComponentModel model, String externalId)
model
- externalId
- id used to resolve user in external storagepublic static boolean isLocalStorage(UserModel user)
public static boolean isLocalStorage(String id)
public static String resolveProviderId(ClientModel client)
public static boolean isLocalStorage(ClientModel client)
public boolean isLocal()
public String getId()
public String getProviderId()
public String getExternalId()
Copyright © 2019 JBoss by Red Hat. All rights reserved.