nl.surfnet.coin.oauth
Class ClientCredentialsClient

java.lang.Object
  extended by nl.surfnet.coin.oauth.OauthClient
      extended by nl.surfnet.coin.oauth.ClientCredentialsClient

public class ClientCredentialsClient
extends OauthClient

Class that provides a Client Credentials style of getting an Access token from the Authorization server


Field Summary
 
Fields inherited from class nl.surfnet.coin.oauth.OauthClient
restTemplate
 
Constructor Summary
ClientCredentialsClient()
           
 
Method Summary
 String getAccessToken()
          Template method that defines how to get hold of an access token.
 void setClientKey(String clientKey)
           
 void setClientSecret(String clientSecret)
           
 void setOauthAuthorizationUrl(String oauthAuthorizationUrl)
           
 
Methods inherited from class nl.surfnet.coin.oauth.OauthClient
doExchange, exchange, exchange, exchange, exchange, getListResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCredentialsClient

public ClientCredentialsClient()
Method Detail

getAccessToken

public String getAccessToken()
Description copied from class: OauthClient
Template method that defines how to get hold of an access token.

Specified by:
getAccessToken in class OauthClient
Returns:
the access token

setClientKey

public void setClientKey(String clientKey)

setClientSecret

public void setClientSecret(String clientSecret)

setOauthAuthorizationUrl

public void setOauthAuthorizationUrl(String oauthAuthorizationUrl)


Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.