Example usage for org.springframework.security.oauth.provider ConsumerAuthentication ConsumerAuthentication

List of usage examples for org.springframework.security.oauth.provider ConsumerAuthentication ConsumerAuthentication

Introduction

In this page you can find the example usage for org.springframework.security.oauth.provider ConsumerAuthentication ConsumerAuthentication.

Prototype

public ConsumerAuthentication(ConsumerDetails consumerDetails, ConsumerCredentials consumerCredentials) 

Source Link

Usage

From source file:nl.surfnet.coin.api.PersonControllerTest.java

private Authentication getAuthentication() {
    OpenConextConsumerDetails consumerDetails = new OpenConextConsumerDetails();
    final JanusClientMetadata clientMetaData = new JanusClientMetadata(new EntityMetadata());
    consumerDetails.setClientMetaData(clientMetaData);
    ConsumerCredentials consumerCredentials = new ConsumerCredentials("consumerKey", "signature",
            "signatureMethod", "signatureBaseString", "token");
    return new ConsumerAuthentication(consumerDetails, consumerCredentials);
}