public class UserSpecificAuthorization extends Authorization
Authorization implementation based on a tenant identifier, a user name, and another Authorization.| Modifier and Type | Field and Description |
|---|---|
protected Authorization |
authorization
The wrapped authorization.
|
protected String |
tenantId
The tenant identifier.
|
protected String |
userName
The user name.
|
| Constructor and Description |
|---|
UserSpecificAuthorization(String tenantId,
String userName,
Authorization authorization)
Creates a new authorization based on the tenant identifier, the user name, 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.
|
String |
getUserName()
The user name.
|
int |
hashCode() |
String |
toString() |
getName@Nonnull protected final Authorization authorization
public UserSpecificAuthorization(@Nonnull String tenantId, @Nonnull String userName, @Nonnull Authorization authorization)
Authorization.tenantId - The tenant identifier of this Authorization.userName - The user name of this Authorization.authorization - The Authorization to be considered tenant- and user-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 © 2019 SAP SE. All rights reserved.