Search in sources :

Example 1 with BasicAuthProvider

use of org.pentaho.di.ui.core.auth.model.BasicAuthProvider in project pentaho-kettle by pentaho.

the class AuthHarness method getProviders.

public static List<NamedProvider> getProviders(BindingFactory bf) {
    List<NamedProvider> providers = new ArrayList<NamedProvider>();
    KerberosAuthProvider kProvider = new KerberosAuthProvider(bf);
    kProvider.setPrincipal("kerbname1");
    kProvider.setPassword("password");
    providers.add(new NamedProvider("kerberos1", kProvider));
    kProvider = new KerberosAuthProvider(bf);
    kProvider.setUseKeytab(true);
    kProvider.setKeytabFile("/Users/gmoran/file.tmp");
    providers.add(new NamedProvider("kerberos2", kProvider));
    BasicAuthProvider bProvider = new BasicAuthProvider(bf);
    bProvider.setPrincipal("basicname1");
    bProvider.setPassword("password");
    providers.add(new NamedProvider("basic1", bProvider));
    bProvider = new BasicAuthProvider(bf);
    bProvider.setPrincipal("basicname2");
    bProvider.setPassword("password");
    providers.add(new NamedProvider("basic2", bProvider));
    NoAuthAuthProvider naProvider = new NoAuthAuthProvider(bf);
    providers.add(new NamedProvider("noAuth1", naProvider));
    naProvider = new NoAuthAuthProvider(bf);
    providers.add(new NamedProvider("noAuth2", naProvider));
    bProvider = new BasicAuthProvider(bf);
    bProvider.setPrincipal("basicname3");
    bProvider.setPassword("password");
    providers.add(new NamedProvider("basic3", bProvider));
    kProvider = new KerberosAuthProvider(bf);
    kProvider.setPrincipal("kerberos3");
    kProvider.setPassword("password");
    providers.add(new NamedProvider("kerberos3", kProvider));
    return providers;
}
Also used : BasicAuthProvider(org.pentaho.di.ui.core.auth.model.BasicAuthProvider) NamedProvider(org.pentaho.di.ui.core.auth.model.NamedProvider) ArrayList(java.util.ArrayList) NoAuthAuthProvider(org.pentaho.di.ui.core.auth.model.NoAuthAuthProvider) KerberosAuthProvider(org.pentaho.di.ui.core.auth.model.KerberosAuthProvider)

Example 2 with BasicAuthProvider

use of org.pentaho.di.ui.core.auth.model.BasicAuthProvider in project pentaho-kettle by pentaho.

the class AuthProviderController method getPossibleTypes.

/**
 * This will change to pull providers from the auth persistencemanager
 *
 * @return Collection<AuthProvider>
 */
public Collection<AuthProvider> getPossibleTypes() {
    ArrayList<AuthProvider> types = new ArrayList<AuthProvider>();
    types.add(new NoAuthAuthProvider(bf));
    types.add(new KerberosAuthProvider(bf));
    types.add(new BasicAuthProvider(bf));
    return types;
}
Also used : BasicAuthProvider(org.pentaho.di.ui.core.auth.model.BasicAuthProvider) ArrayList(java.util.ArrayList) KerberosAuthProvider(org.pentaho.di.ui.core.auth.model.KerberosAuthProvider) AuthProvider(org.pentaho.di.ui.core.auth.model.AuthProvider) NoAuthAuthProvider(org.pentaho.di.ui.core.auth.model.NoAuthAuthProvider) BasicAuthProvider(org.pentaho.di.ui.core.auth.model.BasicAuthProvider) NoAuthAuthProvider(org.pentaho.di.ui.core.auth.model.NoAuthAuthProvider) KerberosAuthProvider(org.pentaho.di.ui.core.auth.model.KerberosAuthProvider)

Aggregations

ArrayList (java.util.ArrayList)2 BasicAuthProvider (org.pentaho.di.ui.core.auth.model.BasicAuthProvider)2 KerberosAuthProvider (org.pentaho.di.ui.core.auth.model.KerberosAuthProvider)2 NoAuthAuthProvider (org.pentaho.di.ui.core.auth.model.NoAuthAuthProvider)2 AuthProvider (org.pentaho.di.ui.core.auth.model.AuthProvider)1 NamedProvider (org.pentaho.di.ui.core.auth.model.NamedProvider)1