Package com.netflix.spinnaker.security
Class User
java.lang.Object
com.netflix.spinnaker.security.User
- All Implemented Interfaces:
Serializable,org.springframework.security.core.userdetails.UserDetails
@Deprecated
public class User
extends Object
implements org.springframework.security.core.userdetails.UserDetails
Deprecated.
use org.springframework.security.core.userdetails.User and AllowedAccountsAuthorities
to encode allowed accounts callers should program against UserDetails interface use runAs on
AuthenticatedRequest to switch users rather than supplying a principal directly.
A UserDetails implementation to hook into Spring Security framework.
User exists to propagate the allowedAccounts.
This class is deprecated in favor of encoding allowed accounts as granted authorities, and using the spring frameworks built in User object and preferring the UserDetails interface when interacting.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<String>Deprecated.protected StringDeprecated.protected StringDeprecated.protected StringDeprecated.protected Collection<String>Deprecated.static final longDeprecated.protected StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.List<? extends org.springframework.security.core.GrantedAuthority>Deprecated.getEmail()Deprecated.Deprecated.Deprecated.Deprecated.Not usedgetRoles()Deprecated.Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidsetAllowedAccounts(Collection<String> allowedAccounts) Deprecated.voidDeprecated.voidsetFirstName(String firstName) Deprecated.voidsetLastName(String lastName) Deprecated.voidsetRoles(Collection<String> roles) Deprecated.voidsetUsername(String username) Deprecated.
-
Field Details
-
serialVersionUID
public static final long serialVersionUIDDeprecated.- See Also:
-
email
Deprecated. -
username
Deprecated. -
firstName
Deprecated. -
lastName
Deprecated. -
roles
Deprecated. -
allowedAccounts
Deprecated.
-
-
Constructor Details
-
User
public User()Deprecated.
-
-
Method Details
-
getAuthorities
Deprecated.- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.userdetails.UserDetails
-
getPassword
Deprecated.Not used- Specified by:
getPasswordin interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
Deprecated.- Specified by:
getUsernamein interfaceorg.springframework.security.core.userdetails.UserDetails
-
getEmail
Deprecated. -
setEmail
Deprecated. -
setUsername
Deprecated. -
getFirstName
Deprecated. -
setFirstName
Deprecated. -
getLastName
Deprecated. -
setLastName
Deprecated. -
getRoles
Deprecated. -
setRoles
Deprecated. -
getAllowedAccounts
Deprecated. -
setAllowedAccounts
Deprecated. -
asImmutable
Deprecated. -
isAccountNonExpired
public boolean isAccountNonExpired()Deprecated.- Specified by:
isAccountNonExpiredin interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()Deprecated.- Specified by:
isAccountNonLockedin interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()Deprecated.- Specified by:
isCredentialsNonExpiredin interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()Deprecated.- Specified by:
isEnabledin interfaceorg.springframework.security.core.userdetails.UserDetails
-