Package org.wildfly.security.http.oidc
Class OidcClientContext.OidcClientConfigurationDelegate
- java.lang.Object
-
- org.wildfly.security.http.oidc.OidcClientConfiguration
-
- org.wildfly.security.http.oidc.OidcClientContext.OidcClientConfigurationDelegate
-
- Enclosing class:
- OidcClientContext
protected static class OidcClientContext.OidcClientConfigurationDelegate extends OidcClientConfiguration
This delegate is used to store temporary, per-request metadata like request resolved URLs. Ever method is delegated except URL get methods and isConfigured()
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.wildfly.security.http.oidc.OidcClientConfiguration
OidcClientConfiguration.RelativeUrlsUsed
-
-
Field Summary
Fields Modifier and Type Field Description protected OidcClientConfiguration
delegate
-
Fields inherited from class org.wildfly.security.http.oidc.OidcClientConfiguration
accountUrl, alwaysRefreshToken, authServerBaseUrl, authUrl, autodetectBearerOnly, bearerOnly, client, clientAuthenticator, clientId, confidentialPort, cors, corsAllowedHeaders, corsAllowedMethods, corsExposedHeaders, corsMaxAge, delegateBearerErrorResponseSending, enableBasicAuth, exposeToken, ignoreOAuthQueryParameter, issuerUrl, jwksUrl, logoutUrl, minTimeBetweenJwksRequests, notBefore, oidcStateCookiePath, pkce, principalAttribute, providerUrl, publicClient, publicKeyCacheTtl, publicKeyLocator, realm, redirectRewriteRules, registerNodeAtStartup, registerNodePeriod, registerNodeUrl, relativeUrls, resource, resourceCredentials, scope, sslRequired, stateCookieName, tokenMinimumTimeToLive, tokenSignatureAlgorithm, tokenStore, tokenUrl, turnOffChangeSessionIdOnLogin, unregisterNodeUrl, useRealmRoleMappings, useResourceRoleMappings, verifyTokenAudience
-
-
Constructor Summary
Constructors Constructor Description OidcClientConfigurationDelegate(OidcClientConfiguration delegate)
-
Method Summary
-
Methods inherited from class org.wildfly.security.http.oidc.OidcClientConfiguration
getAuthServerBaseUrl, getAuthUrl, getCorsExposedHeaders, getIssuerUrl, getOidcProviderMetadata, getProviderUrl, isConfigured, isDelegateBearerErrorResponseSending, isOAuthQueryParameterEnabled, isPkce, isSSLEnabled, resetUrls, resolveUrls, setAuthServerBaseUrl, setClient, setCorsExposedHeaders, setDelegateBearerErrorResponseSending, setIgnoreOAuthQueryParameter, setPkce, setRewriteRedirectRules
-
-
-
-
Field Detail
-
delegate
protected OidcClientConfiguration delegate
-
-
Constructor Detail
-
OidcClientConfigurationDelegate
public OidcClientConfigurationDelegate(OidcClientConfiguration delegate)
-
-
Method Detail
-
setAuthServerBaseUrl
public void setAuthServerBaseUrl(String authServerBaseUrl)
-
setProviderUrl
public void setProviderUrl(String providerUrl)
- Overrides:
setProviderUrl
in classOidcClientConfiguration
-
getRelativeUrls
public OidcClientConfiguration.RelativeUrlsUsed getRelativeUrls()
- Overrides:
getRelativeUrls
in classOidcClientConfiguration
-
getTokenUrl
public String getTokenUrl()
- Overrides:
getTokenUrl
in classOidcClientConfiguration
-
getLogoutUrl
public String getLogoutUrl()
- Overrides:
getLogoutUrl
in classOidcClientConfiguration
-
getAccountUrl
public String getAccountUrl()
- Overrides:
getAccountUrl
in classOidcClientConfiguration
-
getRegisterNodeUrl
public String getRegisterNodeUrl()
- Overrides:
getRegisterNodeUrl
in classOidcClientConfiguration
-
getUnregisterNodeUrl
public String getUnregisterNodeUrl()
- Overrides:
getUnregisterNodeUrl
in classOidcClientConfiguration
-
getJwksUrl
public String getJwksUrl()
- Overrides:
getJwksUrl
in classOidcClientConfiguration
-
getResource
public String getResource()
- Overrides:
getResource
in classOidcClientConfiguration
-
getClientId
public String getClientId()
- Overrides:
getClientId
in classOidcClientConfiguration
-
getResourceName
public String getResourceName()
- Overrides:
getResourceName
in classOidcClientConfiguration
-
getRealm
public String getRealm()
- Overrides:
getRealm
in classOidcClientConfiguration
-
setRealm
public void setRealm(String realm)
- Overrides:
setRealm
in classOidcClientConfiguration
-
setPublicKeyLocator
public void setPublicKeyLocator(PublicKeyLocator publicKeyLocator)
- Overrides:
setPublicKeyLocator
in classOidcClientConfiguration
-
getPublicKeyLocator
public PublicKeyLocator getPublicKeyLocator()
- Overrides:
getPublicKeyLocator
in classOidcClientConfiguration
-
setResource
public void setResource(String resourceName)
- Overrides:
setResource
in classOidcClientConfiguration
-
setClientId
public void setClientId(String clientId)
- Overrides:
setClientId
in classOidcClientConfiguration
-
isBearerOnly
public boolean isBearerOnly()
- Overrides:
isBearerOnly
in classOidcClientConfiguration
-
setBearerOnly
public void setBearerOnly(boolean bearerOnly)
- Overrides:
setBearerOnly
in classOidcClientConfiguration
-
isAutodetectBearerOnly
public boolean isAutodetectBearerOnly()
- Overrides:
isAutodetectBearerOnly
in classOidcClientConfiguration
-
setAutodetectBearerOnly
public void setAutodetectBearerOnly(boolean autodetectBearerOnly)
- Overrides:
setAutodetectBearerOnly
in classOidcClientConfiguration
-
isEnableBasicAuth
public boolean isEnableBasicAuth()
- Overrides:
isEnableBasicAuth
in classOidcClientConfiguration
-
setEnableBasicAuth
public void setEnableBasicAuth(boolean enableBasicAuth)
- Overrides:
setEnableBasicAuth
in classOidcClientConfiguration
-
isPublicClient
public boolean isPublicClient()
- Overrides:
isPublicClient
in classOidcClientConfiguration
-
setPublicClient
public void setPublicClient(boolean publicClient)
- Overrides:
setPublicClient
in classOidcClientConfiguration
-
getResourceCredentials
public Map<String,Object> getResourceCredentials()
- Overrides:
getResourceCredentials
in classOidcClientConfiguration
-
setResourceCredentials
public void setResourceCredentials(Map<String,Object> resourceCredentials)
- Overrides:
setResourceCredentials
in classOidcClientConfiguration
-
setClientAuthenticator
public void setClientAuthenticator(ClientCredentialsProvider clientAuthenticator)
- Overrides:
setClientAuthenticator
in classOidcClientConfiguration
-
getClientAuthenticator
public ClientCredentialsProvider getClientAuthenticator()
- Overrides:
getClientAuthenticator
in classOidcClientConfiguration
-
getClient
public org.apache.http.client.HttpClient getClient()
- Overrides:
getClient
in classOidcClientConfiguration
-
setClient
public void setClient(org.apache.http.client.HttpClient client)
- Overrides:
setClient
in classOidcClientConfiguration
-
getScope
public String getScope()
- Overrides:
getScope
in classOidcClientConfiguration
-
setScope
public void setScope(String scope)
- Overrides:
setScope
in classOidcClientConfiguration
-
getSSLRequired
public Oidc.SSLRequired getSSLRequired()
- Overrides:
getSSLRequired
in classOidcClientConfiguration
-
setSSLRequired
public void setSSLRequired(Oidc.SSLRequired sslRequired)
- Overrides:
setSSLRequired
in classOidcClientConfiguration
-
getConfidentialPort
public int getConfidentialPort()
- Overrides:
getConfidentialPort
in classOidcClientConfiguration
-
setConfidentialPort
public void setConfidentialPort(int confidentialPort)
- Overrides:
setConfidentialPort
in classOidcClientConfiguration
-
getTokenStore
public Oidc.TokenStore getTokenStore()
- Overrides:
getTokenStore
in classOidcClientConfiguration
-
setTokenStore
public void setTokenStore(Oidc.TokenStore tokenStore)
- Overrides:
setTokenStore
in classOidcClientConfiguration
-
getOidcStateCookiePath
public String getOidcStateCookiePath()
- Overrides:
getOidcStateCookiePath
in classOidcClientConfiguration
-
setOidcStateCookiePath
public void setOidcStateCookiePath(String oidcStateCookiePath)
- Overrides:
setOidcStateCookiePath
in classOidcClientConfiguration
-
getStateCookieName
public String getStateCookieName()
- Overrides:
getStateCookieName
in classOidcClientConfiguration
-
setStateCookieName
public void setStateCookieName(String stateCookieName)
- Overrides:
setStateCookieName
in classOidcClientConfiguration
-
isUseResourceRoleMappings
public boolean isUseResourceRoleMappings()
- Overrides:
isUseResourceRoleMappings
in classOidcClientConfiguration
-
setUseResourceRoleMappings
public void setUseResourceRoleMappings(boolean useResourceRoleMappings)
- Overrides:
setUseResourceRoleMappings
in classOidcClientConfiguration
-
isUseRealmRoleMappings
public boolean isUseRealmRoleMappings()
- Overrides:
isUseRealmRoleMappings
in classOidcClientConfiguration
-
setUseRealmRoleMappings
public void setUseRealmRoleMappings(boolean useRealmRoleMappings)
- Overrides:
setUseRealmRoleMappings
in classOidcClientConfiguration
-
isCors
public boolean isCors()
- Overrides:
isCors
in classOidcClientConfiguration
-
setCors
public void setCors(boolean cors)
- Overrides:
setCors
in classOidcClientConfiguration
-
getCorsMaxAge
public int getCorsMaxAge()
- Overrides:
getCorsMaxAge
in classOidcClientConfiguration
-
setCorsMaxAge
public void setCorsMaxAge(int corsMaxAge)
- Overrides:
setCorsMaxAge
in classOidcClientConfiguration
-
getCorsAllowedHeaders
public String getCorsAllowedHeaders()
- Overrides:
getCorsAllowedHeaders
in classOidcClientConfiguration
-
setNotBefore
public void setNotBefore(int notBefore)
- Overrides:
setNotBefore
in classOidcClientConfiguration
-
getNotBefore
public int getNotBefore()
- Overrides:
getNotBefore
in classOidcClientConfiguration
-
updateNotBefore
public void updateNotBefore(int notBefore)
- Overrides:
updateNotBefore
in classOidcClientConfiguration
-
setExposeToken
public void setExposeToken(boolean exposeToken)
- Overrides:
setExposeToken
in classOidcClientConfiguration
-
isExposeToken
public boolean isExposeToken()
- Overrides:
isExposeToken
in classOidcClientConfiguration
-
setCorsAllowedMethods
public void setCorsAllowedMethods(String corsAllowedMethods)
- Overrides:
setCorsAllowedMethods
in classOidcClientConfiguration
-
getCorsAllowedMethods
public String getCorsAllowedMethods()
- Overrides:
getCorsAllowedMethods
in classOidcClientConfiguration
-
setCorsAllowedHeaders
public void setCorsAllowedHeaders(String corsAllowedHeaders)
- Overrides:
setCorsAllowedHeaders
in classOidcClientConfiguration
-
isAlwaysRefreshToken
public boolean isAlwaysRefreshToken()
- Overrides:
isAlwaysRefreshToken
in classOidcClientConfiguration
-
setAlwaysRefreshToken
public void setAlwaysRefreshToken(boolean alwaysRefreshToken)
- Overrides:
setAlwaysRefreshToken
in classOidcClientConfiguration
-
getRegisterNodePeriod
public int getRegisterNodePeriod()
- Overrides:
getRegisterNodePeriod
in classOidcClientConfiguration
-
setRegisterNodePeriod
public void setRegisterNodePeriod(int registerNodePeriod)
- Overrides:
setRegisterNodePeriod
in classOidcClientConfiguration
-
setRegisterNodeAtStartup
public void setRegisterNodeAtStartup(boolean registerNodeAtStartup)
- Overrides:
setRegisterNodeAtStartup
in classOidcClientConfiguration
-
isRegisterNodeAtStartup
public boolean isRegisterNodeAtStartup()
- Overrides:
isRegisterNodeAtStartup
in classOidcClientConfiguration
-
getPrincipalAttribute
public String getPrincipalAttribute()
- Overrides:
getPrincipalAttribute
in classOidcClientConfiguration
-
setPrincipalAttribute
public void setPrincipalAttribute(String principalAttribute)
- Overrides:
setPrincipalAttribute
in classOidcClientConfiguration
-
isTurnOffChangeSessionIdOnLogin
public boolean isTurnOffChangeSessionIdOnLogin()
- Overrides:
isTurnOffChangeSessionIdOnLogin
in classOidcClientConfiguration
-
setTurnOffChangeSessionIdOnLogin
public void setTurnOffChangeSessionIdOnLogin(boolean turnOffChangeSessionIdOnLogin)
- Overrides:
setTurnOffChangeSessionIdOnLogin
in classOidcClientConfiguration
-
getTokenMinimumTimeToLive
public int getTokenMinimumTimeToLive()
- Overrides:
getTokenMinimumTimeToLive
in classOidcClientConfiguration
-
setTokenMinimumTimeToLive
public void setTokenMinimumTimeToLive(int tokenMinimumTimeToLive)
- Overrides:
setTokenMinimumTimeToLive
in classOidcClientConfiguration
-
setMinTimeBetweenJwksRequests
public void setMinTimeBetweenJwksRequests(int minTimeBetweenJwksRequests)
- Overrides:
setMinTimeBetweenJwksRequests
in classOidcClientConfiguration
-
getMinTimeBetweenJwksRequests
public int getMinTimeBetweenJwksRequests()
- Overrides:
getMinTimeBetweenJwksRequests
in classOidcClientConfiguration
-
getPublicKeyCacheTtl
public int getPublicKeyCacheTtl()
- Overrides:
getPublicKeyCacheTtl
in classOidcClientConfiguration
-
setPublicKeyCacheTtl
public void setPublicKeyCacheTtl(int publicKeyCacheTtl)
- Overrides:
setPublicKeyCacheTtl
in classOidcClientConfiguration
-
getRedirectRewriteRules
public Map<String,String> getRedirectRewriteRules()
- Overrides:
getRedirectRewriteRules
in classOidcClientConfiguration
-
isVerifyTokenAudience
public boolean isVerifyTokenAudience()
- Overrides:
isVerifyTokenAudience
in classOidcClientConfiguration
-
setVerifyTokenAudience
public void setVerifyTokenAudience(boolean verifyTokenAudience)
- Overrides:
setVerifyTokenAudience
in classOidcClientConfiguration
-
getTokenSignatureAlgorithm
public String getTokenSignatureAlgorithm()
- Overrides:
getTokenSignatureAlgorithm
in classOidcClientConfiguration
-
setTokenSignatureAlgorithm
public void setTokenSignatureAlgorithm(String tokenSignatureAlgorithm)
- Overrides:
setTokenSignatureAlgorithm
in classOidcClientConfiguration
-
-