Class AadAuthenticationProperties
java.lang.Object
com.azure.spring.cloud.autoconfigure.aad.properties.AadAuthenticationProperties
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class AadAuthenticationProperties
extends Object
implements org.springframework.beans.factory.InitializingBean
Configuration properties for Azure Active Directory Authentication.
- See Also:
-
InitializingBean
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Properties dedicated to changing the behavior of how the groups are mapped from the Azure AD response. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Set after properties.Gets the App ID URI.Gets the AADApplicationType.Gets the additional authenticate parameters.Gets the authorization clients.Gets the JWK set cache lifespan.Gets the JWK set cache refresh time.Gets the JWT connect timeout.Gets the JWT read timeout.int
Gets the JWT size limit.Gets the post logout redirect URI.Gets the redirect URI template.Whether the session is stateless.Gets the user group properties.Gets the username attribute.boolean
isAllowedGroup
(String group) Whether the group is allowed.boolean
Whether allowed group IDs is configured.boolean
Whether allowed group names is configured.void
setAppIdUri
(String appIdUri) Sets the App ID URI.void
setApplicationType
(AadApplicationType applicationType) Sets the AADApplicationType.void
setJwkSetCacheLifespan
(Duration jwkSetCacheLifespan) Sets the JWK set cache lifespan.void
setJwkSetCacheRefreshTime
(Duration jwkSetCacheRefreshTime) Sets the JWK set cache refresh time.void
setJwtConnectTimeout
(Duration jwtConnectTimeout) Sets the JWT connect timeout.void
setJwtReadTimeout
(Duration jwtReadTimeout) Sets the JWT read timeout.void
setJwtSizeLimit
(int jwtSizeLimit) Sets the JWT size limit.void
setPostLogoutRedirectUri
(String postLogoutRedirectUri) Set the post logout redirect URI.void
setRedirectUriTemplate
(String redirectUriTemplate) Sets the redirect URI template.void
setSessionStateless
(Boolean sessionStateless) Sets whether the session is stateless.void
setUserNameAttribute
(String userNameAttribute) Sets the username attribute.
-
Field Details
-
PREFIX
Properties prefix.- See Also:
-
-
Constructor Details
-
AadAuthenticationProperties
public AadAuthenticationProperties()
-
-
Method Details
-
getProfile
- Returns:
- The AADProfileProperties.
-
getCredential
- Returns:
- The AADCredentialProperties.
-
getApplicationType
Gets the AADApplicationType.- Returns:
- the AADApplicationType
-
setApplicationType
Sets the AADApplicationType.- Parameters:
applicationType
- the AADApplicationType
-
isAllowedGroupNamesConfigured
public boolean isAllowedGroupNamesConfigured()Whether allowed group names is configured.- Returns:
- whether allowed group names is configured
-
isAllowedGroupIdsConfigured
public boolean isAllowedGroupIdsConfigured()Whether allowed group IDs is configured.- Returns:
- whether allowed group IDs is configured
-
getUserGroup
Gets the user group properties.- Returns:
- the user group properties
-
getUserNameAttribute
Gets the username attribute.- Returns:
- the username attribute
-
setUserNameAttribute
Sets the username attribute.- Parameters:
userNameAttribute
- the username attribute
-
getRedirectUriTemplate
Gets the redirect URI template.- Returns:
- the redirect URI template
-
setRedirectUriTemplate
Sets the redirect URI template.- Parameters:
redirectUriTemplate
- the redirect URI template
-
getAppIdUri
Gets the App ID URI.- Returns:
- the App ID URI
-
setAppIdUri
Sets the App ID URI.- Parameters:
appIdUri
- the App ID URI
-
getAuthenticateAdditionalParameters
Gets the additional authenticate parameters.- Returns:
- the additional authenticate parameters
-
getJwtConnectTimeout
Gets the JWT connect timeout.- Returns:
- the JWT connect timeout
-
setJwtConnectTimeout
Sets the JWT connect timeout.- Parameters:
jwtConnectTimeout
- the JWT connect timeout
-
getJwtReadTimeout
Gets the JWT read timeout.- Returns:
- the JWT read timeout
-
setJwtReadTimeout
Sets the JWT read timeout.- Parameters:
jwtReadTimeout
- the JWT read timeout
-
getJwtSizeLimit
public int getJwtSizeLimit()Gets the JWT size limit.- Returns:
- the JWT size limit
-
setJwtSizeLimit
public void setJwtSizeLimit(int jwtSizeLimit) Sets the JWT size limit.- Parameters:
jwtSizeLimit
- the JWT size limit
-
getJwkSetCacheLifespan
Gets the JWK set cache lifespan.- Returns:
- the JWK set cache lifespan
-
setJwkSetCacheLifespan
Sets the JWK set cache lifespan.- Parameters:
jwkSetCacheLifespan
- the JWT set cache lifespan
-
getJwkSetCacheRefreshTime
Gets the JWK set cache refresh time.- Returns:
- the JWK set cache refresh time
-
setJwkSetCacheRefreshTime
Sets the JWK set cache refresh time.- Parameters:
jwkSetCacheRefreshTime
- the JWK set cache refresh time
-
getPostLogoutRedirectUri
Gets the post logout redirect URI.- Returns:
- the post logout redirect URI
-
setPostLogoutRedirectUri
Set the post logout redirect URI.- Parameters:
postLogoutRedirectUri
- the post logout redirect URI
-
getSessionStateless
Whether the session is stateless.- Returns:
- whether the session is stateless
-
setSessionStateless
Sets whether the session is stateless.- Parameters:
sessionStateless
- whether the session is stateless
-
getGraphMembershipUri
- Returns:
- Graph membership uri.
-
getAuthorizationClients
Gets the authorization clients.- Returns:
- the authorization clients
-
isAllowedGroup
Whether the group is allowed.- Parameters:
group
- the group- Returns:
- whether the group is allowed
-
afterPropertiesSet
public void afterPropertiesSet()Set after properties.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-