public final class OpenshiftSAClientAdapter extends AbstractReadOnlyClientStorageAdapter
ClientModel.ClientCreationEvent, ClientModel.ClientRemovedEvent, ClientModel.ClientUpdatedEventOrderedModel.OrderedModelComparator<OM extends OrderedModel>RoleContainerModel.RoleRemovedEventcomponent, realm, sessionPRIVATE_KEY, PUBLIC_KEY, X509CERTIFICATECONSENT_SCREEN_TEXT, DISPLAY_ON_CONSENT_SCREEN, GUI_ORDER, INCLUDE_IN_TOKEN_SCOPE| Constructor and Description |
|---|
OpenshiftSAClientAdapter(String clientId,
com.openshift.restclient.model.IResource resource,
com.openshift.restclient.IClient client,
KeycloakSession session,
RealmModel realm,
ClientStorageProviderModel component) |
addClientScope, addClientScopes, addProtocolMapper, addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, removeAttribute, removeAuthenticationFlowBindingOverride, removeClientScope, removeProtocolMapper, removeRedirectUri, removeWebOrigin, setAlwaysDisplayInConsole, setAttribute, setAuthenticationFlowBindingOverride, setBaseUrl, setBearerOnly, setClientAuthenticatorType, setClientId, setConsentRequired, setDescription, setDirectAccessGrantsEnabled, setEnabled, setFrontchannelLogout, setFullScopeAllowed, setImplicitFlowEnabled, setManagementUrl, setName, setNodeReRegistrationTimeout, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setRegistrationToken, setRootUrl, setSecret, setServiceAccountsEnabled, setStandardFlowEnabled, setWebOrigins, updateProtocolMappergetId, getRealm, getRegisteredNodes, isSurrogateAuthRequired, registerNode, setSurrogateAuthRequired, unregisterNode, updateClientaddDefaultRole, addRole, addRole, getDefaultRolesStream, getRole, getRolesStream, getRolesStream, removeDefaultRoles, removeRole, searchForRolesStream, updateDefaultRolesclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConsentScreenTextgetGuiOrder, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScopegetProtocolMappersgetRealmScopeMappings, getScopeMappingsgetDefaultRoles, getRoles, getRoles, searchForRolespublic OpenshiftSAClientAdapter(String clientId, com.openshift.restclient.model.IResource resource, com.openshift.restclient.IClient client, KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
public String getClientId()
ClientModelpublic String getName()
public String getDescription()
public boolean isEnabled()
public boolean isAlwaysDisplayInConsole()
public String getManagementUrl()
public String getRootUrl()
public String getBaseUrl()
public boolean isBearerOnly()
public int getNodeReRegistrationTimeout()
public String getClientAuthenticatorType()
public boolean validateSecret(String secret)
public String getSecret()
public String getRegistrationToken()
public String getProtocol()
public String getAuthenticationFlowBindingOverride(String binding)
ClientModelbinding - examples are "browser", "direct_grant"public Map<String,String> getAuthenticationFlowBindingOverrides()
public boolean isFrontchannelLogout()
public boolean isFullScopeAllowed()
public boolean isPublicClient()
public boolean isConsentRequired()
public boolean isDisplayOnConsentScreen()
public boolean isStandardFlowEnabled()
public boolean isImplicitFlowEnabled()
public boolean isDirectAccessGrantsEnabled()
public boolean isServiceAccountsEnabled()
public Map<String,ClientScopeModel> getClientScopes(boolean defaultScope, boolean filterByProtocol)
ClientModelfilterByProtocol - if true, then just client scopes of same protocol like current client will be returnedpublic ClientScopeModel getDynamicClientScope(String scope)
ClientModelReturns a ClientScopeModel associated with this client.
This method is used as a fallback in order to let clients to resolve a scope dynamically which is not listed as default or optional scope when calling ClientModel.getClientScopes(boolean, boolean).
scope - the scope namepublic int getNotBefore()
ClientModelpublic Stream<ProtocolMapperModel> getProtocolMappersStream()
ProtocolMapperContainerModelpublic ProtocolMapperModel getProtocolMapperById(String id)
public ProtocolMapperModel getProtocolMapperByName(String protocol, String name)
public Stream<RoleModel> getRealmScopeMappingsStream()
ScopeContainerModelScopeContainerModel.getScopeMappingsStream() ()} returns only those
that belong to the realm that owns this scope container.RoleModelpublic boolean hasScope(RoleModel role)
Copyright © 2021 JBoss by Red Hat. All rights reserved.