public class AccountSpecificAuthorization extends Authorization
Authorization
implementation based on an account Id and another Authorization
.Modifier and Type | Field and Description |
---|---|
protected String |
accountId
The account identifier.
|
protected Authorization |
authorization
The wrapped authorization.
|
Constructor and Description |
---|
AccountSpecificAuthorization(String accountId,
Authorization authorization)
Creates a new authorization based on the tenant identifier and another
Authorization . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getAccountId()
The account identifier.
|
Authorization |
getAuthorization()
The wrapped authorization.
|
int |
hashCode() |
String |
toString() |
getName
@Nonnull protected final Authorization authorization
public AccountSpecificAuthorization(@Nonnull String accountId, @Nonnull Authorization authorization)
Authorization
.accountId
- The account identifier of this Authorization
.authorization
- The Authorization
to be considered tenant-specific.public boolean equals(Object o)
equals
in class Authorization
protected boolean canEqual(Object other)
canEqual
in class Authorization
public int hashCode()
hashCode
in class Authorization
@Nonnull public Authorization getAuthorization()
public String toString()
toString
in class Authorization
Copyright © 2019 SAP SE. All rights reserved.