Package com.pingidentity.util
Class MSGraphAPI
- java.lang.Object
-
- com.pingidentity.util.MSGraphAPI
-
public class MSGraphAPI extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MSGraphAPI.OBJECT_TYPE
-
Constructor Summary
Constructors Constructor Description MSGraphAPI(String tenantId, String clientId, String clientSecret)
Get and cache an accessToken
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MSGraphResult
getEntries(MSGraphAPI.OBJECT_TYPE objType)
Get all entries for a particular objectTypeMSGraphResult
getEntries(MSGraphAPI.OBJECT_TYPE objType, String filter, String attributeNames)
Get entries for an objectType based on filter returning certain attributescom.unboundid.ldap.sdk.Entry
getEntry(MSGraphAPI.OBJECT_TYPE objType, UUID objectId)
Get an entry basedon objectType and objectIdcom.unboundid.ldap.sdk.Entry
getEntry(MSGraphAPI.OBJECT_TYPE objType, UUID objectId, String attributeNames)
Get an etnry based on objectType and objectId.MSGraphResult
nextPage(MSGraphResult nextResult)
Get the next page of results
-
-
-
Constructor Detail
-
MSGraphAPI
public MSGraphAPI(String tenantId, String clientId, String clientSecret)
Get and cache an accessToken- Parameters:
tenantId
-clientId
-clientSecret
-
-
-
Method Detail
-
getEntry
public com.unboundid.ldap.sdk.Entry getEntry(MSGraphAPI.OBJECT_TYPE objType, UUID objectId)
Get an entry basedon objectType and objectId- Parameters:
objType
-objectId
-- Returns:
-
getEntry
public com.unboundid.ldap.sdk.Entry getEntry(MSGraphAPI.OBJECT_TYPE objType, UUID objectId, String attributeNames)
Get an etnry based on objectType and objectId. Also return specific attributes- Parameters:
objType
-objectId
-attributeNames
-- Returns:
-
getEntries
public MSGraphResult getEntries(MSGraphAPI.OBJECT_TYPE objType)
Get all entries for a particular objectType- Parameters:
objType
-- Returns:
-
getEntries
public MSGraphResult getEntries(MSGraphAPI.OBJECT_TYPE objType, String filter, String attributeNames)
Get entries for an objectType based on filter returning certain attributes- Parameters:
objType
-filter
-attributeNames
-- Returns:
-
nextPage
public MSGraphResult nextPage(MSGraphResult nextResult)
Get the next page of results- Parameters:
nextResult
-- Returns:
-
-