Class GetTokenForTeamsUserOptions
java.lang.Object
com.azure.communication.identity.models.GetTokenForTeamsUserOptions
Options class for configuring the
CommunicationIdentityAsyncClient.getTokenForTeamsUser(GetTokenForTeamsUserOptions) and CommunicationIdentityClient.getTokenForTeamsUser(GetTokenForTeamsUserOptions) methods.-
Constructor Summary
ConstructorsConstructorDescriptionGetTokenForTeamsUserOptions(String teamsUserAadToken, String clientId, String userObjectId) Constructor ofGetTokenForTeamsUserOptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the Client ID of an Azure AD application.Gets the Azure AD access token of a Teams User.Gets the Object ID of an Azure AD user (Teams User).
-
Constructor Details
-
GetTokenForTeamsUserOptions
Constructor ofGetTokenForTeamsUserOptions.- Parameters:
teamsUserAadToken- Azure AD access token of a Teams User.clientId- Client ID of an Azure AD application to be verified against the appId claim in the Azure AD access token.userObjectId- Object ID of an Azure AD user (Teams User) to be verified against the OID claim in the Azure AD access token.
-
-
Method Details
-
getTeamsUserAadToken
Gets the Azure AD access token of a Teams User.- Returns:
- the Azure AD access token of a Teams User.
-
getClientId
Gets the Client ID of an Azure AD application.- Returns:
- the Client ID of an Azure AD application.
-
getUserObjectId
Gets the Object ID of an Azure AD user (Teams User).- Returns:
- the Object ID of an Azure AD user (Teams User).
-