public class TenantSpecificAuthorization extends Authorization
Authorization implementation based on a tenant identifier and another Authorization.| Modifier and Type | Field and Description |
|---|---|
protected Authorization |
authorization
The wrapped authorization.
|
protected String |
tenantId
The tenant identifier.
|
| Constructor and Description |
|---|
TenantSpecificAuthorization(String tenantId,
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) |
Authorization |
getAuthorization()
The wrapped authorization.
|
String |
getTenantId()
The tenant identifier.
|
int |
hashCode() |
String |
toString() |
getName@Nonnull protected final Authorization authorization
public TenantSpecificAuthorization(@Nonnull String tenantId, @Nonnull Authorization authorization)
Authorization.tenantId - The tenant identifier of this Authorization.authorization - The Authorization to be considered tenant-specific.public boolean equals(Object o)
equals in class Authorizationprotected boolean canEqual(Object other)
canEqual in class Authorizationpublic int hashCode()
hashCode in class Authorization@Nonnull public Authorization getAuthorization()
public String toString()
toString in class AuthorizationCopyright © 2020 SAP SE. All rights reserved.