Package org.keycloak.models
Class IdentityProviderModel
java.lang.Object
org.keycloak.models.IdentityProviderModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OAuth2IdentityProviderConfig
,SAMLIdentityProviderConfig
A model type representing the configuration for identity providers. It provides some common properties and also a config
for configuration options and properties specifics to a identity provider.
- Author:
- Pedro Igor
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Deprecated.static final String
protected boolean
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getAlias()
int
hashCode()
boolean
boolean
Deprecated.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Returns flag whether the users within this IdP should be transient, ie.boolean
void
setAddReadTokenRoleOnCreate
(boolean addReadTokenRoleOnCreate) void
void
setAuthenticateByDefault
(boolean authenticateByDefault) Deprecated.void
setCaseSensitiveOriginalUsername
(boolean caseSensitive) void
setClaimFilterName
(String claimFilterName) void
setClaimFilterValue
(String claimFilterValue) void
void
setDisplayName
(String displayName) void
setEnabled
(boolean enabled) void
setFilteredByClaims
(boolean filteredByClaims) void
setFirstBrokerLoginFlowId
(String firstBrokerLoginFlowId) void
setHideOnLogin
(boolean hideOnLogin) void
setInternalId
(String internalId) void
setLinkOnly
(boolean linkOnly) void
setLoginHint
(boolean loginHint) void
setMetadataDescriptorUrl
(String metadataDescriptorUrl) void
setOrganizationId
(String organizationId) void
setPassMaxAge
(boolean passMaxAge) void
setPostBrokerLoginFlowId
(String postBrokerLoginFlowId) void
setProviderId
(String providerId) void
setStoreToken
(boolean storeToken) void
setSyncMode
(IdentityProviderSyncMode syncMode) void
setTransientUsers
(boolean transientUsers) Configures the IdP to not store users in Keycloak database.void
setTrustEmail
(boolean trustEmail) void
validate
(RealmModel realm) Validates this configuration.
-
Field Details
-
ALIAS
- See Also:
-
ALIAS_NOT_IN
- See Also:
-
ALLOWED_CLOCK_SKEW
- See Also:
-
AUTHENTICATE_BY_DEFAULT
- See Also:
-
CASE_SENSITIVE_ORIGINAL_USERNAME
- See Also:
-
CLAIM_FILTER_NAME
- See Also:
-
CLAIM_FILTER_VALUE
- See Also:
-
DISPLAY_NAME
- See Also:
-
DO_NOT_STORE_USERS
- See Also:
-
ENABLED
- See Also:
-
FILTERED_BY_CLAIMS
- See Also:
-
FIRST_BROKER_LOGIN_FLOW_ID
- See Also:
-
HIDE_ON_LOGIN
- See Also:
-
LEGACY_HIDE_ON_LOGIN_ATTR
Deprecated.- See Also:
-
LINK_ONLY
- See Also:
-
LOGIN_HINT
- See Also:
-
METADATA_DESCRIPTOR_URL
- See Also:
-
ORGANIZATION_ID
- See Also:
-
ORGANIZATION_ID_NOT_NULL
- See Also:
-
PASS_MAX_AGE
- See Also:
-
POST_BROKER_LOGIN_FLOW_ID
- See Also:
-
SEARCH
- See Also:
-
SYNC_MODE
- See Also:
-
addReadTokenRoleOnCreate
protected boolean addReadTokenRoleOnCreate -
linkOnly
protected boolean linkOnly
-
-
Constructor Details
-
IdentityProviderModel
public IdentityProviderModel() -
IdentityProviderModel
-
-
Method Details
-
getInternalId
-
setInternalId
-
getAlias
-
setAlias
-
getProviderId
-
setProviderId
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
isStoreToken
public boolean isStoreToken() -
setStoreToken
public void setStoreToken(boolean storeToken) -
isLinkOnly
public boolean isLinkOnly() -
setLinkOnly
public void setLinkOnly(boolean linkOnly) -
isAuthenticateByDefault
Deprecated. -
setAuthenticateByDefault
Deprecated. -
getFirstBrokerLoginFlowId
-
setFirstBrokerLoginFlowId
-
getPostBrokerLoginFlowId
-
setPostBrokerLoginFlowId
-
getConfig
-
setConfig
-
isAddReadTokenRoleOnCreate
public boolean isAddReadTokenRoleOnCreate() -
setAddReadTokenRoleOnCreate
public void setAddReadTokenRoleOnCreate(boolean addReadTokenRoleOnCreate) -
isTrustEmail
public boolean isTrustEmail() -
setTrustEmail
public void setTrustEmail(boolean trustEmail) -
getDisplayName
-
setDisplayName
-
getDisplayIconClasses
-
getOrganizationId
-
setOrganizationId
-
validate
Validates this configuration.
Sub-classes can override this method in order to enforce provider specific validations.
- Parameters:
realm
- the realm
-
getSyncMode
-
setSyncMode
-
isLoginHint
public boolean isLoginHint() -
setLoginHint
public void setLoginHint(boolean loginHint) -
isPassMaxAge
public boolean isPassMaxAge() -
setPassMaxAge
public void setPassMaxAge(boolean passMaxAge) -
isHideOnLogin
public boolean isHideOnLogin() -
setHideOnLogin
public void setHideOnLogin(boolean hideOnLogin) -
isTransientUsers
public boolean isTransientUsers()Returns flag whether the users within this IdP should be transient, ie. not stored in Keycloak database. Default value:false
.- Returns:
-
setTransientUsers
public void setTransientUsers(boolean transientUsers) Configures the IdP to not store users in Keycloak database. Default value:false
. -
isFilteredByClaims
public boolean isFilteredByClaims() -
setFilteredByClaims
public void setFilteredByClaims(boolean filteredByClaims) -
getClaimFilterName
-
setClaimFilterName
-
getClaimFilterValue
-
setClaimFilterValue
-
getMetadataDescriptorUrl
-
setMetadataDescriptorUrl
-
isCaseSensitiveOriginalUsername
public boolean isCaseSensitiveOriginalUsername() -
setCaseSensitiveOriginalUsername
public void setCaseSensitiveOriginalUsername(boolean caseSensitive) -
hashCode
public int hashCode() -
equals
-