public class ApplicationAdapter extends ClientAdapter implements ApplicationModel
Modifier and Type | Field and Description |
---|---|
protected ApplicationEntity |
applicationEntity |
protected javax.persistence.EntityManager |
em |
protected KeycloakSession |
session |
entity, realm
PRIVATE_KEY, PUBLIC_KEY, X509CERTIFICATE
Constructor and Description |
---|
ApplicationAdapter(RealmModel realm,
javax.persistence.EntityManager em,
KeycloakSession session,
ApplicationEntity applicationEntity) |
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getAllowedClaimsMask, getAttribute, getAttributes, getClientId, getEntity, getId, getNotBefore, getProtocol, getRealm, getRealmScopeMappingQuery, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, isEnabled, isFullScopeAllowed, isPublicClient, removeAttribute, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setAttribute, setEnabled, setFullScopeAllowed, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getAllowedClaimsMask, getAttribute, getAttributes, getClientId, getId, getNotBefore, getProtocol, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, isEnabled, isFullScopeAllowed, isPublicClient, removeAttribute, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setAttribute, setEnabled, setFullScopeAllowed, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
protected javax.persistence.EntityManager em
protected KeycloakSession session
protected ApplicationEntity applicationEntity
public ApplicationAdapter(RealmModel realm, javax.persistence.EntityManager em, KeycloakSession session, ApplicationEntity applicationEntity)
public void updateApplication()
updateApplication
in interface ApplicationModel
public String getName()
getName
in interface ApplicationModel
public void setName(String name)
setName
in interface ApplicationModel
public boolean isSurrogateAuthRequired()
isSurrogateAuthRequired
in interface ApplicationModel
public void setSurrogateAuthRequired(boolean surrogateAuthRequired)
setSurrogateAuthRequired
in interface ApplicationModel
public String getManagementUrl()
getManagementUrl
in interface ApplicationModel
public void setManagementUrl(String url)
setManagementUrl
in interface ApplicationModel
public String getBaseUrl()
getBaseUrl
in interface ApplicationModel
public void setBaseUrl(String url)
setBaseUrl
in interface ApplicationModel
public boolean isBearerOnly()
isBearerOnly
in interface ApplicationModel
public void setBearerOnly(boolean only)
setBearerOnly
in interface ApplicationModel
public boolean isDirectGrantsOnly()
isDirectGrantsOnly
in interface ClientModel
public void setDirectGrantsOnly(boolean flag)
setDirectGrantsOnly
in interface ClientModel
public RoleModel getRole(String name)
getRole
in interface RoleContainerModel
public RoleModel addRole(String name)
addRole
in interface RoleContainerModel
public RoleModel addRole(String id, String name)
addRole
in interface RoleContainerModel
public boolean removeRole(RoleModel roleModel)
removeRole
in interface RoleContainerModel
public Set<RoleModel> getRoles()
getRoles
in interface RoleContainerModel
public boolean hasScope(RoleModel role)
hasScope
in interface ClientModel
hasScope
in class ClientAdapter
public Set<RoleModel> getApplicationScopeMappings(ClientModel client)
getApplicationScopeMappings
in interface ApplicationModel
public List<String> getDefaultRoles()
getDefaultRoles
in interface ApplicationModel
public void addDefaultRole(String name)
addDefaultRole
in interface ApplicationModel
public void updateDefaultRoles(String[] defaultRoles)
updateDefaultRoles
in interface ApplicationModel
public int getNodeReRegistrationTimeout()
getNodeReRegistrationTimeout
in interface ApplicationModel
public void setNodeReRegistrationTimeout(int timeout)
setNodeReRegistrationTimeout
in interface ApplicationModel
public Map<String,Integer> getRegisteredNodes()
getRegisteredNodes
in interface ApplicationModel
public void registerNode(String nodeHost, int registrationTime)
ApplicationModel
registerNode
in interface ApplicationModel
public void unregisterNode(String nodeHost)
unregisterNode
in interface ApplicationModel
public boolean equals(Object o)
equals
in class ClientAdapter
public int hashCode()
hashCode
in class ClientAdapter
Copyright © 2014. All Rights Reserved.