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
Nested ClassesModifier and TypeClassDescriptionstatic classProperties dedicated to changing the behavior of how the groups are mapped from the Azure AD response. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet 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.intGets 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.booleanisAllowedGroup(String group) Whether the group is allowed.booleanWhether allowed group IDs is configured.booleanWhether allowed group names is configured.voidsetAppIdUri(String appIdUri) Sets the App ID URI.voidsetApplicationType(AadApplicationType applicationType) Sets the AADApplicationType.voidsetJwkSetCacheLifespan(Duration jwkSetCacheLifespan) Sets the JWK set cache lifespan.voidsetJwkSetCacheRefreshTime(Duration jwkSetCacheRefreshTime) Sets the JWK set cache refresh time.voidsetJwtConnectTimeout(Duration jwtConnectTimeout) Sets the JWT connect timeout.voidsetJwtReadTimeout(Duration jwtReadTimeout) Sets the JWT read timeout.voidsetJwtSizeLimit(int jwtSizeLimit) Sets the JWT size limit.voidsetPostLogoutRedirectUri(String postLogoutRedirectUri) Set the post logout redirect URI.voidsetRedirectUriTemplate(String redirectUriTemplate) Sets the redirect URI template.voidsetSessionStateless(Boolean sessionStateless) Sets whether the session is stateless.voidsetUserNameAttribute(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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-