public class KeycloakDeployment extends Object
Constructor and Description |
---|
KeycloakDeployment() |
protected RelativeUrlsUsed relativeUrls
protected String realm
protected PublicKeyLocator publicKeyLocator
protected String authServerBaseUrl
protected String realmInfoUrl
protected KeycloakUriBuilder authUrl
protected String tokenUrl
protected KeycloakUriBuilder logoutUrl
protected String accountUrl
protected String registerNodeUrl
protected String unregisterNodeUrl
protected String jwksUrl
protected String principalAttribute
protected String resourceName
protected boolean bearerOnly
protected boolean autodetectBearerOnly
protected boolean enableBasicAuth
protected boolean publicClient
protected ClientCredentialsProvider clientAuthenticator
protected Callable<org.apache.http.client.HttpClient> client
protected String scope
protected SslRequired sslRequired
protected int confidentialPort
protected TokenStore tokenStore
protected String adapterStateCookiePath
protected String stateCookieName
protected boolean useResourceRoleMappings
protected boolean cors
protected int corsMaxAge
protected String corsAllowedHeaders
protected String corsAllowedMethods
protected String corsExposedHeaders
protected boolean exposeToken
protected boolean alwaysRefreshToken
protected boolean registerNodeAtStartup
protected int registerNodePeriod
protected boolean turnOffChangeSessionIdOnLogin
protected volatile int notBefore
protected int tokenMinimumTimeToLive
protected int minTimeBetweenJwksRequests
protected int publicKeyCacheTtl
protected Callable<PolicyEnforcer> policyEnforcer
protected boolean pkce
protected boolean ignoreOAuthQueryParameter
protected boolean delegateBearerErrorResponseSending
protected boolean verifyTokenAudience
public boolean isConfigured()
public String getResourceName()
public String getRealm()
public void setRealm(String realm)
public PublicKeyLocator getPublicKeyLocator()
public void setPublicKeyLocator(PublicKeyLocator publicKeyLocator)
public String getAuthServerBaseUrl()
public void setAuthServerBaseUrl(AdapterConfig config)
protected void resolveUrls(KeycloakUriBuilder authUrlBuilder)
authUrlBuilder
- absolute URIpublic RelativeUrlsUsed getRelativeUrls()
public String getRealmInfoUrl()
public KeycloakUriBuilder getAuthUrl()
public String getTokenUrl()
public KeycloakUriBuilder getLogoutUrl()
public String getAccountUrl()
public String getRegisterNodeUrl()
public String getUnregisterNodeUrl()
public String getJwksUrl()
public void setResourceName(String resourceName)
public boolean isBearerOnly()
public void setBearerOnly(boolean bearerOnly)
public boolean isAutodetectBearerOnly()
public void setAutodetectBearerOnly(boolean autodetectBearerOnly)
public boolean isEnableBasicAuth()
public void setEnableBasicAuth(boolean enableBasicAuth)
public boolean isPublicClient()
public void setPublicClient(boolean publicClient)
public ClientCredentialsProvider getClientAuthenticator()
public void setClientAuthenticator(ClientCredentialsProvider clientAuthenticator)
public org.apache.http.client.HttpClient getClient()
public void setClient(org.apache.http.client.HttpClient client)
public String getScope()
public void setScope(String scope)
public SslRequired getSslRequired()
public void setSslRequired(SslRequired sslRequired)
public boolean isSSLEnabled()
public int getConfidentialPort()
public void setConfidentialPort(int confidentialPort)
public TokenStore getTokenStore()
public void setTokenStore(TokenStore tokenStore)
public String getAdapterStateCookiePath()
public void setAdapterStateCookiePath(String adapterStateCookiePath)
public String getStateCookieName()
public void setStateCookieName(String stateCookieName)
public boolean isUseResourceRoleMappings()
public void setUseResourceRoleMappings(boolean useResourceRoleMappings)
public boolean isCors()
public void setCors(boolean cors)
public int getCorsMaxAge()
public void setCorsMaxAge(int corsMaxAge)
public String getCorsAllowedHeaders()
public void setCorsAllowedHeaders(String corsAllowedHeaders)
public String getCorsAllowedMethods()
public void setCorsAllowedMethods(String corsAllowedMethods)
public String getCorsExposedHeaders()
public void setCorsExposedHeaders(String corsExposedHeaders)
public boolean isExposeToken()
public void setExposeToken(boolean exposeToken)
public int getNotBefore()
public void setNotBefore(int notBefore)
public void updateNotBefore(int notBefore)
public boolean isAlwaysRefreshToken()
public void setAlwaysRefreshToken(boolean alwaysRefreshToken)
public boolean isRegisterNodeAtStartup()
public void setRegisterNodeAtStartup(boolean registerNodeAtStartup)
public int getRegisterNodePeriod()
public void setRegisterNodePeriod(int registerNodePeriod)
public String getPrincipalAttribute()
public void setPrincipalAttribute(String principalAttribute)
public boolean isTurnOffChangeSessionIdOnLogin()
public void setTurnOffChangeSessionIdOnLogin(boolean turnOffChangeSessionIdOnLogin)
public int getTokenMinimumTimeToLive()
public void setTokenMinimumTimeToLive(int tokenMinimumTimeToLive)
public int getMinTimeBetweenJwksRequests()
public void setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests)
public int getPublicKeyCacheTtl()
public void setPublicKeyCacheTtl(int publicKeyCacheTtl)
public void setPolicyEnforcer(Callable<PolicyEnforcer> policyEnforcer)
public PolicyEnforcer getPolicyEnforcer()
public boolean isPkce()
public void setPkce(boolean pkce)
public void setIgnoreOAuthQueryParameter(boolean ignoreOAuthQueryParameter)
public boolean isOAuthQueryParameterEnabled()
public void setRewriteRedirectRules(Map<String,String> redirectRewriteRules)
public boolean isDelegateBearerErrorResponseSending()
public void setDelegateBearerErrorResponseSending(boolean delegateBearerErrorResponseSending)
public boolean isVerifyTokenAudience()
public void setVerifyTokenAudience(boolean verifyTokenAudience)
public void setClient(Callable<org.apache.http.client.HttpClient> callable)
Copyright © 2019 JBoss by Red Hat. All rights reserved.