Skip to content

Commit da32c8e

Browse files
author
Mohit
authored
1 parent 79d8caa commit da32c8e

2 files changed

Lines changed: 44 additions & 2 deletions

File tree

common4j/src/main/com/microsoft/identity/common/java/commands/parameters/BrokerResourceAccountCommandParameters.java

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import lombok.EqualsAndHashCode;
3030
import lombok.Getter;
31+
import lombok.NonNull;
3132
import lombok.experimental.SuperBuilder;
3233

3334
/**
@@ -37,15 +38,54 @@
3738
@Getter
3839
@SuperBuilder(toBuilder = true)
3940
@EqualsAndHashCode(callSuper = true)
40-
public class BrokerResourceAccountCommandParameters extends ResourceAccountCommandParameters {
41+
public class BrokerResourceAccountCommandParameters extends ResourceAccountCommandParameters
42+
implements IBrokerTokenCommandParameters {
43+
/**
44+
* UID of the calling application process as seen by the Broker.
45+
*/
4146
@Expose
4247
private final int callerUid;
4348

49+
/**
50+
* Version name/code of the calling application that initiated the request.
51+
*/
4452
@Expose
4553
private final String callerAppVersion;
4654

55+
/**
56+
* Version of the Broker executing this request.
57+
*/
4758
@Expose
4859
private final String brokerVersion;
4960

61+
/**
62+
* The AAD tenant id (home tenant) for the user account this request is for. It
63+
* is derived from the {@link #getHomeAccountId()} value and is used
64+
*/
65+
@Expose
66+
@NonNull
67+
private final String homeTenantId;
68+
69+
/**
70+
* The user id in home tenant retrieved from {@link #getHomeAccountId()}.
71+
*/
72+
@NonNull
73+
private final String localAccountId;
74+
75+
/**
76+
* {@link IBrokerAccount} if already present, otherwise null.
77+
*/
5078
private final IBrokerAccount brokerAccount;
79+
80+
/**
81+
* The protocol version that was negotiated between the calling app / library
82+
* and the Broker.
83+
*/
84+
@Expose
85+
private final String negotiatedBrokerProtocolVersion;
86+
87+
/**
88+
* For this parameter class it is always {@link BrokerRequestType#REGULAR} as this request is not started in broker.
89+
*/
90+
private final BrokerRequestType requestType = BrokerRequestType.REGULAR;
5191
}

common4j/src/main/com/microsoft/identity/common/java/opentelemetry/SpanName.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,7 @@ public enum SpanName {
6565
SwitchBrowserResume,
6666
SwitchBrowserProcess,
6767
WrappedKeyAlgorithmIdentifier,
68-
ProcessWebCpRedirects
68+
ProcessWebCpRedirects,
69+
70+
ProvisionResourceAccount
6971
}

0 commit comments

Comments
 (0)