org.restlet.security
Class ConfidentialAuthorizer
java.lang.Object
org.restlet.Restlet
org.restlet.routing.Filter
org.restlet.security.Authorizer
org.restlet.security.ConfidentialAuthorizer
- All Implemented Interfaces:
- Uniform
public class ConfidentialAuthorizer
- extends Authorizer
Authorizer allowing only confidential calls. Confidential calls typically
come through HTTPS server connectors.
- Author:
- Jerome Louvel
Method Summary |
boolean |
authorize(Request request,
Response response)
Authorizes the request only if its method is one of the authorized
methods. |
Methods inherited from class org.restlet.Restlet |
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner |
ConfidentialAuthorizer
public ConfidentialAuthorizer()
authorize
public boolean authorize(Request request,
Response response)
- Authorizes the request only if its method is one of the authorized
methods.
- Specified by:
authorize
in class Authorizer
- Parameters:
request
- The request sent.response
- The response to update.
- Returns:
- True if the authorization succeeded.
Copyright © 2005-2013 Restlet.