public class SAMLUserDetails extends Object implements org.springframework.security.core.userdetails.UserDetails
UserDetails for Spring Boot Security SAML. This simple implementation hardly
covers all security aspects since it's mostly hardcoded. I.E. accounts are never locked, expired, or disabled, and
always eturn the same granted authority "ROLE_USER".
Consider implementing your own UserDetails and SAMLUserDetailsService.| Constructor and Description |
|---|
SAMLUserDetails(org.springframework.security.saml.SAMLCredential samlCredential) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String name) |
String[] |
getAttributeArray(String name) |
Map<String,String> |
getAttributes() |
Map<String,String[]> |
getAttributesArrays() |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
String |
getPassword() |
String |
getUsername() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
public SAMLUserDetails(org.springframework.security.saml.SAMLCredential samlCredential)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailsCopyright © 2018. All rights reserved.