Class AADAuthenticationProperties.UserGroupProperties
- java.lang.Object
-
- com.azure.spring.autoconfigure.aad.AADAuthenticationProperties.UserGroupProperties
-
- Enclosing class:
- AADAuthenticationProperties
public static class AADAuthenticationProperties.UserGroupProperties extends Object
Properties dedicated to changing the behavior of how the groups are mapped from the Azure AD response. Depending on the graph API used the object will not be the same.
-
-
Constructor Summary
Constructors Constructor Description UserGroupProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<String>getAllowedGroupIds()Gets the set of allowed group IDs.List<String>getAllowedGroupNames()Gets the list of allowed group names.List<String>getAllowedGroups()Deprecated.Use 'azure.activedirectory.user-group.allowed-group-names'BooleangetEnableFullList()Deprecated.Use 'allowed-group-ids: all'voidsetAllowedGroupIds(Set<String> allowedGroupIds)Set the allowed group ids.voidsetAllowedGroupNames(List<String> allowedGroupNames)Sets the list of allowed group names.voidsetAllowedGroups(List<String> allowedGroups)Deprecated.Use 'azure.activedirectory.user-group.allowed-group-names'voidsetEnableFullList(Boolean enableFullList)Deprecated.Use 'azure.activedirectory.user-group.allowed-group-ids: all'
-
-
-
Method Detail
-
getAllowedGroupIds
public Set<String> getAllowedGroupIds()
Gets the set of allowed group IDs.- Returns:
- the set of allowed group IDs
-
setAllowedGroupIds
public void setAllowedGroupIds(Set<String> allowedGroupIds)
Set the allowed group ids.- Parameters:
allowedGroupIds- Allowed group ids.
-
getAllowedGroupNames
public List<String> getAllowedGroupNames()
Gets the list of allowed group names.- Returns:
- the list of allowed group names
-
setAllowedGroupNames
public void setAllowedGroupNames(List<String> allowedGroupNames)
Sets the list of allowed group names.- Parameters:
allowedGroupNames- the list of allowed group names
-
getEnableFullList
@Deprecated @DeprecatedConfigurationProperty(reason="enable-full-list is not easy to understand.", replacement="allowed-group-ids: all") public Boolean getEnableFullList()
Deprecated.Use 'allowed-group-ids: all'Whether full list is enabled.- Returns:
- whether full list is enabled
-
setEnableFullList
@Deprecated public void setEnableFullList(Boolean enableFullList)
Deprecated.Use 'azure.activedirectory.user-group.allowed-group-ids: all'Sets whether full list is enabled.- Parameters:
enableFullList- whether full list is enabled
-
getAllowedGroups
@Deprecated @DeprecatedConfigurationProperty(reason="In order to distinguish between allowed-group-ids and allowed-group-names, set allowed-groups deprecated.", replacement="azure.activedirectory.user-group.allowed-group-names") public List<String> getAllowedGroups()
Deprecated.Use 'azure.activedirectory.user-group.allowed-group-names'Gets the list of allowed groups.- Returns:
- the list of allowed groups
-
setAllowedGroups
@Deprecated public void setAllowedGroups(List<String> allowedGroups)
Deprecated.Use 'azure.activedirectory.user-group.allowed-group-names'Sets the list of allowed groups.- Parameters:
allowedGroups- the list of allowed groups
-
-