Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


oracle.adf.view.rich.remote
Interface AuthorizationProvider


public interface AuthorizationProvider

This interface will add an itentity or authorization to a RemoteApplicationRequest. This will be run whenever an HTTP 1.1/401:Unauthorized error is returned from the producer. Using this mechanism an AuthorizationProvider may modify the request before it is sent to the remote server. The system will know which AuthorizationProvider to use based by using the reading the "oracle.adf.view.rich.remote.AUTH_PROVIDER" context parameter specified in the web.xml.


Method Summary
 boolean addAuthorization(RemoteApplicationRequest request)
          Instructs the provider to add its own authorization to the req.

 

Method Detail

addAuthorization

boolean addAuthorization(RemoteApplicationRequest request)
Instructs the provider to add its own authorization to the req. Generally it is good form to first check the request to see if authorization has already been provided. If it has, returning fals here may save the consumer one or more trips to the producer on a failed authentication attempt as the consumer will not attempt another connection if no additional authentication was added.
Parameters:
request - the RemoteApplicationRequest with which to add authorization
Returns:
a boolean containing true if authorization was able to be added the the request and false if it was not.

Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.