Package org.socialsignin.springsocial.security.api

Examples of org.socialsignin.springsocial.security.api.SpringSocialSecurityProfile


public class SpringSocialSecurityProfileFactory extends
    AbstractSpringSocialProfileFactory<SpringSocialProfile> {

  @Override
  public SpringSocialProfile instantiate() {
    return new SpringSocialSecurityProfile();
  }
View Full Code Here


  @Override
  public void setConnectionValues(SpringSocialSecurity springSocialSecurity,
      ConnectionValues values) {

    SpringSocialSecurityProfile profile = springSocialSecurity
        .getUserProfile();
    values.setProviderUserId(profile.getUserName());
    values.setDisplayName(profile.getDisplayName());

  }
View Full Code Here

  }

  @Override
  public UserProfile fetchUserProfile(
      SpringSocialSecurity springSocialSecurity) {
    SpringSocialSecurityProfile profile = springSocialSecurity
        .getUserProfile();
    UserProfileBuilder builder = new UserProfileBuilder();
    builder.setUsername(profile.getUserName());
    builder.setName(profile.getDisplayName());
    return builder.build();
  }
View Full Code Here

   * <code>ConnectionData</code> instance.
   */
  @Override
  public SpringSocialSecurityProfile getUserProfile() {

    return new SpringSocialSecurityProfile(
        connectionData.getProviderUserId(),
        connectionData.getDisplayName(),
        connectionData.getAccessToken(),
        connectionData.getImageUrl(),
        connectionData.getProfileUrl());
View Full Code Here

TOP

Related Classes of org.socialsignin.springsocial.security.api.SpringSocialSecurityProfile

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.