I am trying to use Graph APIs to get list of "Azure B2C AD TrustFrameworkPolicy" in Java
These are my dependencies in the POM
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph</artifactId>
<version>2.3.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph-core</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph-auth</artifactId>
<version>0.2.0</version>
</dependency>
I have clientId, secret and b2ctenant
I am creating an authentication provider :
ClientCredentialProvider authProvider =
new ClientCredentialProvider(clientId,
scopes,
clientSecret,
b2cTenantId,
endpoint);
And using the auth provider in the graph service client,
IGraphServiceClient graphClient = GraphServiceClient.builder()
.authenticationProvider(authProvider)
.buildClient();
But when I am using the "ITrustFrameworkPolicyCollectionPage" I am getting error -> Can not be resolved to a type
ITrustFrameworkPolicyCollectionPage policies = graphClient.trustFramework().policies()
.buildRequest()
.get();
I am trying to find which maven dependency I missed, or I dont understand why it won't work. Some body please help.