FileDocCategorySizeDatePackage
ContainerCallbackHandler.javaAPI DocGlassfish v2 API3199Fri May 04 22:35:36 BST 2007com.sun.enterprise.security.jmac.callback

ContainerCallbackHandler

public final class ContainerCallbackHandler extends Object implements CallbackHandler, com.sun.enterprise.security.jmac.config.CallbackHandlerConfig
author
Shing Wai Chan

Fields Summary
private CallbackHandler
handler
Constructors Summary
public ContainerCallbackHandler()


      
        if (Switch.getSwitch().getContainerType() == Switch.APPCLIENT_CONTAINER)
 {
            handler = new ClientContainerCallbackHandler();
        } else {
            handler = new ServerContainerCallbackHandler();
        }
    
Methods Summary
public voidhandle(javax.security.auth.callback.Callback[] callbacks)

        handler.handle(callbacks);
    
public voidsetHandlerContext(com.sun.enterprise.security.jmac.config.HandlerContext handlerContext)

        ((CallbackHandlerConfig)handler).setHandlerContext(handlerContext);