001    /*
002     * file CmiCallback.java
003     *
004     * Licensed Materials - Property of IBM
005     * Restricted Materials of IBM
006     *
007     * com.ibm.rational.wvcm.stp.cmi.CmiCallback
008     *
009     * (C) Copyright IBM Corporation 2014.  All Rights Reserved.
010     * Note to U.S. Government Users Restricted Rights:  Use, duplication or 
011     * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
012     */
013    
014    package com.ibm.rational.wvcm.stp.cmi;
015    
016    import javax.wvcm.WvcmException;
017    import javax.wvcm.ProviderFactory.Callback.Authentication;
018    
019    import com.ibm.rational.wvcm.stp.StpProvider.Domain;
020    import com.ibm.rational.wvcm.stp.StpProvider.StpCallback;
021    
022    /**
023     * An interface for allowing CMI callers to perform authentication
024     * actions when they don't have a provider.
025     */
026    public interface CmiCallback extends StpCallback {
027        
028        public void clearAuthentication(String realm,
029                                        String serverUrl);
030        
031        public Authentication getAuthenticationEx(Domain domain,
032                                                  String realm,
033                                                  int retryCount,
034                                                  String serverUrl,
035                                                  WvcmException failure)
036              throws WvcmException;
037    }