Package org.fluxtream.core.auth

Examples of org.fluxtream.core.auth.FlxUserDetails


  @SuppressWarnings("serial")
  public static void asGuest(String username) {
    Guest guest = new Guest();
    guest.username = username;
    final FlxUserDetails loggedUser = new FlxUserDetails(guest);
//    loggedUser.setDaylightSaving(false);
//    loggedUser.setTzOffset(1.0f);
    Authentication authToken = new Authentication() {
      public Collection<GrantedAuthority> getAuthorities() {return null;}
      public Object getCredentials() {return null;}
View Full Code Here


      throws UsernameNotFoundException {
    final Guest guest = JPAUtils.findUnique(em, Guest.class,
        "guest.byUsername", username);
    if (guest == null)
      return null;
        return new FlxUserDetails(guest);
  }
View Full Code Here

      throws UsernameNotFoundException {
    final Guest guest = JPAUtils.findUnique(em, Guest.class,
        "guest.byEmail", email);
    if (guest == null)
      return null;
        return new FlxUserDetails(guest);
  }
View Full Code Here

        }

        @Override
        public Object getPrincipal() {
          Guest guest = new Guest();
          return new FlxUserDetails(guest);
        }

        @Override
        public Object getDetails() {
          return null;
View Full Code Here

TOP

Related Classes of org.fluxtream.core.auth.FlxUserDetails

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.