Package org.springframework.security.userdetails.memory

Examples of org.springframework.security.userdetails.memory.UserMapEditor


   * The user map text which will be processed by property editor.
   */
  private String userMap;

  public Object getObject() throws Exception {
    UserMapEditor userMapEditor = new UserMapEditor();
    userMapEditor.setAsText( userMap );
    return userMapEditor.getValue();
  }
View Full Code Here


    editor.setAsText( "marissa=koala,ROLE_ONE,ROLE_TWO,enabled\r\nscott=wombat,ROLE_ONE,ROLE_THREE,enabled" ); //$NON-NLS-1$
    return (UserRoleListEnhancedUserMap) editor.getValue();
  }

  private UserMap makeUserMap() {
    UserMapEditor editor = new UserMapEditor();
    editor.setAsText( "scott=wombat,ROLE_THREE,ROLE_ONE,enabled\r\nmarissa=koala,ROLE_ONE,ROLE_TWO,enabled" ); //$NON-NLS-1$
    return (UserMap) editor.getValue();
  }
View Full Code Here

TOP

Related Classes of org.springframework.security.userdetails.memory.UserMapEditor

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.