Example usage for org.apache.hadoop.security.authentication.client PseudoAuthenticator PseudoAuthenticator

List of usage examples for org.apache.hadoop.security.authentication.client PseudoAuthenticator PseudoAuthenticator

Introduction

In this page you can find the example usage for org.apache.hadoop.security.authentication.client PseudoAuthenticator PseudoAuthenticator.

Prototype

PseudoAuthenticator

Source Link

Usage

From source file:com.bigstep.datalake.KerberosIdentityAuthenticator.java

License:Apache License

/**
 * If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
 * <p>/*from   ww w.j a  v  a  2s  .  com*/
 * This implementation returns a {@link PseudoAuthenticator}.
 *
 * @return the fallback {@link Authenticator}.
 */
protected Authenticator getFallBackAuthenticator() {
    Authenticator auth = new PseudoAuthenticator();
    if (connConfigurator != null) {
        auth.setConnectionConfigurator(connConfigurator);
    }
    return auth;
}

From source file:com.flipkart.fdp.migration.distcp.security.KerberosAuthenticator2.java

License:Apache License

/**
 * If the specified URL does not support SPNEGO authentication, a fallback
 * {@link Authenticator} will be used.//from   www  .  ja va2s.  co  m
 * <p/>
 * This implementation returns a {@link PseudoAuthenticator}.
 * 
 * @return the fallback {@link Authenticator}.
 */
protected Authenticator getFallBackAuthenticator() {
    return new PseudoAuthenticator();
}