Skip navigation links

Oracle Containers for J2EE Security Java API Reference
10g Release 3 (10.1.3.1.0)

B32115-01


oracle.security.jazn.collector
Interface TokenCollector

All Known Implementing Classes:
TokenCollectorImpl

public interface TokenCollector

User must implement this interface for any custom collection machanism implementation.


Method Summary
 void fail(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int reason)
          This method will be called when the required token is not found in the HttpRequest object while accessing the getToken method.
 IdentityToken getToken(java.lang.String tokenType, javax.servlet.http.HttpServletRequest request, java.util.List tokenNames, java.util.Properties properties)
          This method will be called by OC4J with an appropriate token type, request object and properties This method will create the appropriate token and return to the OC4J.

 

Method Detail

getToken

public IdentityToken getToken(java.lang.String tokenType,
                              javax.servlet.http.HttpServletRequest request,
                              java.util.List tokenNames,
                              java.util.Properties properties)
                       throws CollectorException,
                              TokenNotFoundException
This method will be called by OC4J with an appropriate token type, request object and properties This method will create the appropriate token and return to the OC4J.
Parameters:
tokenType - Valid token types are HTTP_COOKIE, HTTP_HEADER or HTTP_REQUEST
request - The HTTP Servlet Request Object
tokenNames - This is the list of all the header token names configured in the config file
properties - This is the list of custom properties defined in the config file
Returns:
IdentityToken
Throws:
CollectorException
TokenNotFoundException

fail

public void fail(javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response,
                 int reason)
          throws CollectorException
This method will be called when the required token is not found in the HttpRequest object while accessing the getToken method. The concrete class must implement this method
Parameters:
request - The OC4J Http servlet request object
response - The OC4J Http response object
reason - The reason for failure. One of the IdmAuthenticator values.
Throws:
CollectorException

Skip navigation links

Oracle Containers for J2EE Security Java API Reference
10g Release 3 (10.1.3.1.0)

B32115-01


Copyright © 2004, 2006, Oracle. All rights reserved.