make those methods public for external use

Signed-off-by: olivier lamy <olamy@webtide.com>
This commit is contained in:
olivier lamy 2017-04-20 14:24:15 +10:00
parent 99a98127cd
commit 6a88e13b3a
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ public class UserStore extends AbstractLifeCycle
private IdentityService _identityService = new DefaultIdentityService();
private final Map<String, UserIdentity> _knownUserIdentities = new ConcurrentHashMap<>();
protected void addUser( String username, Credential credential, String[] roles)
public void addUser( String username, Credential credential, String[] roles)
{
Principal userPrincipal = new AbstractLoginService.UserPrincipal( username, credential);
Subject subject = new Subject();
@ -54,7 +54,7 @@ public class UserStore extends AbstractLifeCycle
_knownUserIdentities.put(username,_identityService.newUserIdentity(subject,userPrincipal,roles));
}
protected void removeUser(String username)
public void removeUser(String username)
{
_knownUserIdentities.remove(username);
}
@ -69,7 +69,7 @@ public class UserStore extends AbstractLifeCycle
return _identityService;
}
protected Map<String, UserIdentity> getKnownUserIdentities()
public Map<String, UserIdentity> getKnownUserIdentities()
{
return _knownUserIdentities;
}