Example usage for org.springframework.social.facebook.web SignedRequestDecoder SignedRequestDecoder

List of usage examples for org.springframework.social.facebook.web SignedRequestDecoder SignedRequestDecoder

Introduction

In this page you can find the example usage for org.springframework.social.facebook.web SignedRequestDecoder SignedRequestDecoder.

Prototype

public SignedRequestDecoder(String secret) 

Source Link

Usage

From source file:org.springframework.social.facebook.web.CanvasSignInController.java

@Inject
public CanvasSignInController(ConnectionFactoryLocator connectionFactoryLocator,
        UsersConnectionRepository usersConnectionRepository, SignInAdapter signInAdapter, String clientId,
        String clientSecret, String canvasPage) {
    this.usersConnectionRepository = usersConnectionRepository;
    this.signInAdapter = signInAdapter;
    this.clientId = clientId;
    this.canvasPage = canvasPage;
    this.connectionFactoryLocator = connectionFactoryLocator;
    this.signedRequestDecoder = new SignedRequestDecoder(clientSecret);
}

From source file:org.springframework.social.facebook.web.DisconnectController.java

/**
 * Constructs a DisconnectController.//from  w w  w . j  a v a 2s .  co  m
 * @param usersConnectionRepository the current user's {@link UsersConnectionRepository} needed to persist connections; must be a proxy to a request-scoped bean
 * @param applicationSecret the application's secret as assigned by Facebook at registration time. Used to validate signed_request.
 */
public DisconnectController(UsersConnectionRepository usersConnectionRepository, String applicationSecret) {
    this.usersConnectionRepository = usersConnectionRepository;
    this.signedRequestDecoder = new SignedRequestDecoder(applicationSecret);
}