|
28 | 28 |
|
29 | 29 | import lombok.EqualsAndHashCode; |
30 | 30 | import lombok.Getter; |
| 31 | +import lombok.NonNull; |
31 | 32 | import lombok.experimental.SuperBuilder; |
32 | 33 |
|
33 | 34 | /** |
|
37 | 38 | @Getter |
38 | 39 | @SuperBuilder(toBuilder = true) |
39 | 40 | @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 | + */ |
41 | 46 | @Expose |
42 | 47 | private final int callerUid; |
43 | 48 |
|
| 49 | + /** |
| 50 | + * Version name/code of the calling application that initiated the request. |
| 51 | + */ |
44 | 52 | @Expose |
45 | 53 | private final String callerAppVersion; |
46 | 54 |
|
| 55 | + /** |
| 56 | + * Version of the Broker executing this request. |
| 57 | + */ |
47 | 58 | @Expose |
48 | 59 | private final String brokerVersion; |
49 | 60 |
|
| 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 | + */ |
50 | 78 | 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; |
51 | 91 | } |
0 commit comments