org.restlet.ext.oauth
Class Client

java.lang.Object
  extended by org.restlet.ext.oauth.UserStore
      extended by org.restlet.ext.oauth.Client

public abstract class Client
extends UserStore

A POJO representing a OAuth client_id. Each client can have collected a number of authenticated users to allow working on their behalf. Implementors should implement the storage and retrieval.

Author:
Kristoffer Gronowski

Constructor Summary
Client()
           
 
Method Summary
abstract  String getApplicationName()
          Human readable name of the application that this client represents It can be useful for UI components to be presented.
abstract  String getClientId()
          Client id that the client has registered at the auth provider.
abstract  String getClientSecret()
          Client secret that the client has registered at the auth provider.
abstract  String getRedirectUri()
          Redirect URL that the client has registered at the auth provider.
 
Methods inherited from class org.restlet.ext.oauth.UserStore
containsUser, createUser, findUser, revokeUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client()
Method Detail

getClientId

public abstract String getClientId()
Client id that the client has registered at the auth provider.

Returns:
the stored client id

getClientSecret

public abstract String getClientSecret()
Client secret that the client has registered at the auth provider.

Returns:
the stored client secret

getRedirectUri

public abstract String getRedirectUri()
Redirect URL that the client has registered at the auth provider.

Returns:
redirect callback url for code and token flows.

getApplicationName

public abstract String getApplicationName()
Human readable name of the application that this client represents It can be useful for UI components to be presented.

Returns:
name of the application.


Copyright © 2005-2013 Restlet.