public final class OpenshiftSAClientAdapter extends AbstractReadOnlyClientStorageAdapter
OrderedModel.OrderedModelComparator<OM extends OrderedModel>
RoleContainerModel.RoleRemovedEvent
component, realm, session
PRIVATE_KEY, PUBLIC_KEY, X509CERTIFICATE
CONSENT_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, updateProtocolMapper
getId, getRealm, getRegisteredNodes, isSurrogateAuthRequired, registerNode, setSurrogateAuthRequired, unregisterNode, updateClient
addDefaultRole, addRole, addRole, getDefaultRoles, getRole, getRoles, getRoles, removeDefaultRoles, removeRole, searchForRoles, updateDefaultRoles
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConsentScreenText
getGuiOrder, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScope
getScopeMappings
public OpenshiftSAClientAdapter(String clientId, com.openshift.restclient.model.IResource resource, com.openshift.restclient.IClient client, KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
public String getClientId()
ClientModel
public 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)
ClientModel
binding
- 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)
ClientModel
filterByProtocol
- if true, then just client scopes of same protocol like current client will be returnedpublic ClientScopeModel getDynamicClientScope(String scope)
ClientModel
Returns 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()
ClientModel
public Set<ProtocolMapperModel> getProtocolMappers()
public ProtocolMapperModel getProtocolMapperById(String id)
public ProtocolMapperModel getProtocolMapperByName(String protocol, String name)
public Set<RoleModel> getRealmScopeMappings()
ScopeContainerModel
ScopeContainerModel.getScopeMappings()
returns only those
that belong to the realm that owns this scope container.public boolean hasScope(RoleModel role)
Copyright © 2020 JBoss by Red Hat. All rights reserved.