public class SecurityInfo extends Object
Constructor and Description |
---|
SecurityInfo()
Default constructor for serialization frameworks.
|
Modifier and Type | Method and Description |
---|---|
SecurityInfo |
addRole(String role) |
List<String> |
getRoles() |
String |
getUsername() |
boolean |
isAuthenticated() |
boolean |
isAuthenticationEnabled() |
void |
setAuthenticated(boolean authenticated) |
void |
setAuthenticationEnabled(boolean authenticationEnabled) |
void |
setRoles(List<String> roles) |
void |
setUsername(String username) |
public SecurityInfo()
public boolean isAuthenticationEnabled()
public void setAuthenticationEnabled(boolean authenticationEnabled)
public boolean isAuthenticated()
public void setAuthenticated(boolean authenticated)
public String getUsername()
public void setUsername(String username)
public List<String> getRoles()
public SecurityInfo addRole(String role)
role
- Adds the role to roles
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.