Example usage for org.apache.commons.httpclient.auth AuthPolicy unregisterAuthScheme

List of usage examples for org.apache.commons.httpclient.auth AuthPolicy unregisterAuthScheme

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.auth AuthPolicy unregisterAuthScheme.

Prototype

public static void unregisterAuthScheme(String paramString) 

Source Link

Usage

From source file:com.google.enterprise.connector.sharepoint.spiimpl.SharepointConnectorType.java

private void unregisterKerberosSetUp(Map<String, String> configData) {
    AuthPolicy.unregisterAuthScheme(SPConstants.NEGOTIATE);
    String googleConnWorkDir = configData.get(GOOGLE_CONN_WORK_DIR);
    File fileKrb5 = new File(googleConnWorkDir, SPConstants.FILE_KRB5);
    if (fileKrb5 != null && fileKrb5.exists()) {
        fileKrb5.delete();// www .  j  av a 2s .c  o  m
    }
    File fileLogin = new File(googleConnWorkDir, SPConstants.FILE_LOGIN);
    if (fileLogin != null && fileLogin.exists()) {
        fileLogin.delete();
    }
}

From source file:org.apache.abdera.protocol.client.AbderaClient.java

/**
 * Unregister a specific authentication scheme
 * //from  www .  ja  va 2s. com
 * @param name The name of the authentication scheme (e.g. "basic", "digest", etc)
 */
public static void unregisterScheme(String name) {
    AuthPolicy.unregisterAuthScheme(name);
}