Package com.azure.spring.aad.webapp
Class GraphClient
- java.lang.Object
-
- com.azure.spring.aad.webapp.GraphClient
-
public class GraphClient extends Object
GraphClient is used to access graph server. Mainly used to get groups information of a user.
-
-
Constructor Summary
Constructors Constructor Description GraphClient(AADAuthenticationProperties properties)Creates a new instance ofGraphClient.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupInformationgetGroupInformation(String accessToken)Gets the group information.
-
-
-
Constructor Detail
-
GraphClient
public GraphClient(AADAuthenticationProperties properties)
Creates a new instance ofGraphClient.- Parameters:
properties- the AAD authentication properties
-
-
Method Detail
-
getGroupInformation
public GroupInformation getGroupInformation(String accessToken)
Gets the group information.- Parameters:
accessToken- the access token- Returns:
- the group information
-
-