***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.security
Class Challenger

com.sas.services.security.Challenger
All Implemented Interfaces:
RemoteCallbackHandler, java.io.Serializable, java.rmi.Remote, javax.security.auth.callback.CallbackHandler

public class Challenger
implements RemoteCallbackHandler

The Challenger class helps bridge the non-remote JAAS callback classes with the remote PFS versions of the callbacks. This allows clients to handle the standard callbacks, but still work across a a remote interface. A class which implements the javax.security.auth.callback.CallbackHandler interface instantiates a new Challenger passing a pointer to itself as a parameter (typically), then passes the new Challenger instance to UserService.setChallengeCallbackHandler().

Since:
1.0
See Also:
Serialized Form

Constructor Summary
Challenger(javax.security.auth.callback.CallbackHandler localHandler)
          Construct a new Challenger with a local callback handler.
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Handle a callback request.
 

Constructor Detail

Challenger

public Challenger(javax.security.auth.callback.CallbackHandler localHandler)
           throws java.rmi.RemoteException
Construct a new Challenger with a local callback handler.

Parameters:
localHandler - Local callback handler for the challenge.
Throws:
java.rmi.RemoteException - if a network anomaly is encountered.
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException,
                   java.rmi.RemoteException
Handle a callback request. For each callback, convert it to a local callback and pass it on to the local handler. When the local handler is complete, return the results to the orginal caller.

Specified by:
handle in interface RemoteCallbackHandler
Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - An array of Callback items to process.
Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
java.rmi.RemoteException

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.