Restlet Framework 2.2.2
OSGi Environments

org.restlet.ext.oauth
Class TokenAuthServerResource

java.lang.Object
  extended by org.restlet.resource.Resource
      extended by org.restlet.resource.ServerResource
          extended by org.restlet.ext.oauth.OAuthServerResource
              extended by org.restlet.ext.oauth.TokenAuthServerResource
All Implemented Interfaces:
OAuthResourceDefs

public class TokenAuthServerResource
extends OAuthServerResource

Token "Authenticate" Resource for internal use.

Author:
Shotaro Uchida

Field Summary
static String LOCAL_ACCESS_ONLY
           
 
Fields inherited from class org.restlet.ext.oauth.OAuthServerResource
clients, PARAMETER_DEFAULT_SCOPE, tokens
 
Fields inherited from interface org.restlet.ext.oauth.OAuthResourceDefs
ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET, CODE, ERROR, ERROR_DESC, ERROR_URI, EXPIRES_IN, GRANT_TYPE, PASSWORD, REDIR_URI, REFRESH_TOKEN, RESPONSE_TYPE, SCOPE, STATE, TOKEN_TYPE, TOKEN_TYPE_BEARER, TOKEN_TYPE_MAC, USERNAME
 
Constructor Summary
TokenAuthServerResource()
           
 
Method Summary
 Representation authenticate(Representation input)
           
protected  void doCatch(Throwable t)
           
 
Methods inherited from class org.restlet.ext.oauth.OAuthServerResource
addCacheDirective, doInit, getClient, getScope, getState, responseErrorRepresentation
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
 
Methods inherited from class org.restlet.resource.Resource
doError, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toObject, toRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCAL_ACCESS_ONLY

public static final String LOCAL_ACCESS_ONLY
See Also:
Constant Field Values
Constructor Detail

TokenAuthServerResource

public TokenAuthServerResource()
Method Detail

doCatch

protected void doCatch(Throwable t)
Overrides:
doCatch in class ServerResource

authenticate

@Post(value="json")
public Representation authenticate(Representation input)
                            throws Exception
Throws:
Exception

Restlet Framework 2.2.2
OSGi Environments

Copyright © 2005-2014 Restlet.