public UserInfo getUserInfo ( String username ) throws Exception { DirContext dir = context ( ) ; ArrayList roleList = new ArrayList ( getUserRoles ( username ) ) ; String credentials = getUserCredentials ( username ) ; return new UserInfo ( username , Credential . getCredential ( credentials ) , roleList ) ; }
Get the UserInfo for a specified username