|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Resource
org.restlet.resource.UniformResource
org.restlet.resource.ServerResource
org.restlet.ext.oauth.OAuthServerResource
org.restlet.ext.oauth.ValidationServerResource
public class ValidationServerResource
The ValidationResource is intended to protect a Restlet and make sure that correct OAuth credentials are met. It is part of the Authorization server providing a REST endpoint for validation. In default mode it will accept requests over HTTP so that the protected resource does not have to reside in the same application or even be hosted on the same HTTP server. By setting the context attribute parameter "localOnly" to "true" it will only allow for in application invocations. As such the AuthServer needs to be part of the protected resource application. In this mode the Validator will check that a validation request is performed using the RIAP protocol. Example. Attach a ValidationTokenServerResource
{ @code public Restlet createInboundRoot(){ ... root.attach("/validate", ValidationServerResource.class); ... } }
ext.oauth.internal.org.restlet.ext.oauth.OAuthAuthorizer
Field Summary | |
---|---|
static String |
LOCAL_ACCESS_ONLY
|
Fields inherited from class org.restlet.ext.oauth.OAuthServerResource |
---|
ACCESS_TOKEN, ASSERTION, ASSERTION_TYPE, AUTONOMOUS_USER, CLIENT_ID, CLIENT_SECRET, ClientCookieID, clients, CODE, ERROR, ERROR_DESC, ERROR_URI, EXPIRES_IN, generator, GRANT_TYPE, noCache, noStore, OAUTH_TOKEN, PASSWORD, REDIR_URI, REFRESH_TOKEN, RESPONSE_TYPE, SCOPE, STATE, TOKEN_SERVER_MAX_TIME_SEC, TOKEN_SERVER_TIME_SEC, tokenMaxTimeSec, tokenTimeSec, USERNAME |
Constructor Summary | |
---|---|
ValidationServerResource()
|
Method Summary | |
---|---|
Representation |
validate(Representation input)
|
Methods inherited from class org.restlet.ext.oauth.OAuthServerResource |
---|
doInit, generateAgentToken, generateCode, getParameter, parseScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String LOCAL_ACCESS_ONLY
Constructor Detail |
---|
public ValidationServerResource()
Method Detail |
---|
@Post(value="json") public Representation validate(Representation input) throws ResourceException
ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |