]> git.argeo.org Git - lgpl/argeo-commons.git/blob - JcrUserDetails.java
f200a28a420bdc225314408b790366f617649082
[lgpl/argeo-commons.git] / JcrUserDetails.java
1 package org.argeo.security.jcr;
2
3 import org.springframework.security.GrantedAuthority;
4 import org.springframework.security.userdetails.User;
5
6 public class JcrUserDetails extends User {
7 private static final long serialVersionUID = -3594542993773402380L;
8 private final String homePath;
9
10 public JcrUserDetails(String homePath, String username, String password,
11 boolean enabled, boolean accountNonExpired,
12 boolean credentialsNonExpired, boolean accountNonLocked,
13 GrantedAuthority[] authorities) throws IllegalArgumentException {
14 super(username, password, enabled, accountNonExpired,
15 credentialsNonExpired, accountNonLocked, authorities);
16 this.homePath = homePath;
17 }
18
19 public String getHomePath() {
20 return homePath;
21 }
22
23 }