Constructor and Description |
---|
AuthInfoRpc()
Default constructor.
|
AuthInfoRpc(org.springframework.security.core.Authentication authentication)
Default constructor that creates
AuthInfoRpc based upon Authentication . |
AuthInfoRpc(String fullName,
List<RoleInfoRpc> roles)
Default constructor that creates
AuthInfoRpc based upon full name and roles. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFullName()
Gets full name of user.
|
List<RoleInfoRpc> |
getRoles()
Gets roles.
|
int |
hashCode() |
void |
setFullName(String fullName)
Sets full name of authenticated user.
|
void |
setRoles(List<RoleInfoRpc> roles)
Sets roles.
|
String |
toString() |
public AuthInfoRpc()
public AuthInfoRpc(String fullName, List<RoleInfoRpc> roles)
AuthInfoRpc
based upon full name and roles.fullName
- of authenticated user.roles
- of authenticated user.public AuthInfoRpc(org.springframework.security.core.Authentication authentication)
AuthInfoRpc
based upon Authentication
.authentication
- of authenticated user.public String getFullName()
public void setFullName(String fullName)
fullName
- as common name of userpublic List<RoleInfoRpc> getRoles()
public void setRoles(List<RoleInfoRpc> roles)
roles
- to be setCopyright © 2018 Pivotal Software, Inc.. All rights reserved.