public class UserIdentity extends Object
Constructor and Description |
---|
UserIdentity() |
Modifier and Type | Method and Description |
---|---|
String |
appId()
Get the appId property: Set to the app Id of the client JWT making the request.
|
String |
objectId()
Get the objectId property: Set to the object Id of the client JWT making the request.
|
String |
principalId()
Get the principalId property: Set to the principal Id of the client JWT making the request.
|
String |
principalName()
Get the principalName property: Set to the principal name / UPN of the client JWT making the request.
|
String |
tenantId()
Get the tenantId property: Set to the tenant ID of the client JWT making the request.
|
void |
validate()
Validates the instance.
|
UserIdentity |
withAppId(String appId)
Set the appId property: Set to the app Id of the client JWT making the request.
|
UserIdentity |
withObjectId(String objectId)
Set the objectId property: Set to the object Id of the client JWT making the request.
|
UserIdentity |
withPrincipalId(String principalId)
Set the principalId property: Set to the principal Id of the client JWT making the request.
|
UserIdentity |
withPrincipalName(String principalName)
Set the principalName property: Set to the principal name / UPN of the client JWT making the request.
|
UserIdentity |
withTenantId(String tenantId)
Set the tenantId property: Set to the tenant ID of the client JWT making the request.
|
public String principalName()
public UserIdentity withPrincipalName(String principalName)
principalName
- the principalName value to set.public String principalId()
public UserIdentity withPrincipalId(String principalId)
principalId
- the principalId value to set.public String tenantId()
public UserIdentity withTenantId(String tenantId)
tenantId
- the tenantId value to set.public String objectId()
public UserIdentity withObjectId(String objectId)
objectId
- the objectId value to set.public String appId()
public UserIdentity withAppId(String appId)
appId
- the appId value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.