Example usage for org.springframework.security.oauth2.provider OAuth2Authentication getCredentials

List of usage examples for org.springframework.security.oauth2.provider OAuth2Authentication getCredentials

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.provider OAuth2Authentication getCredentials.

Prototype

public Object getCredentials() 

Source Link

Usage

From source file:com.ar.dev.tierra.api.controller.UsuariosController.java

@RequestMapping(value = "/logged", method = RequestMethod.POST)
public ResponseEntity<?> isLogged(OAuth2Authentication authentication) {
    String credential = (String) authentication.getCredentials();
    return null;// w  w  w . jav a 2s.  c  o m
}