Class SpringSecurityUser
- java.lang.Object
-
- org.opennms.web.springframework.security.SpringSecurityUser
-
- All Implemented Interfaces:
java.io.Serializable
,org.springframework.security.core.userdetails.UserDetails
public class SpringSecurityUser extends java.lang.Object implements org.springframework.security.core.userdetails.UserDetails
Wrapper class for the OnmsUser object that implements Spring's UserDetails interface.- Author:
- jwhite
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpringSecurityUser(OnmsUser user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthority(org.springframework.security.core.GrantedAuthority authority)
boolean
equals(java.lang.Object obj)
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority>
getAuthorities()
java.lang.String
getComments()
java.lang.String
getFullName()
java.lang.String
getPassword()
java.lang.String
getUsername()
int
hashCode()
boolean
isAccountNonExpired()
boolean
isAccountNonLocked()
boolean
isCredentialsNonExpired()
boolean
isEnabled()
void
setAuthorities(java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
-
-
Constructor Detail
-
SpringSecurityUser
public SpringSecurityUser(OnmsUser user)
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getFullName
public java.lang.String getFullName()
-
getComments
public java.lang.String getComments()
-
setAuthorities
public void setAuthorities(java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
addAuthority
public void addAuthority(org.springframework.security.core.GrantedAuthority authority)
-
getAuthorities
public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
public boolean isAccountNonExpired()
- Specified by:
isAccountNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()
- Specified by:
isAccountNonLocked
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()
- Specified by:
isCredentialsNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-