Class Authenticator
package: net.jxta.myjxta.util
public abstract class Authenticator
Version:
$Id: Authenticator.java,v 1.1 2004/12/19 23:55:29 gonzo Exp $
Author:
james todd [gonzo at jxta dot org]
Field Summary
protected final static String
protected final static String
protected final static String
protected final static String
private static Authenticator
private final static String
private final static Object
private String
protected Preferences
private final static String
Constructor Summary
protected
Method Summary
public abstract boolean
authenticate(String credentials)
public abstract boolean
authenticate(String principal, String credentials)
public static void
private static Authenticator
create(String name)
public static Authenticator
public static Authenticator
factory(boolean newInstance)
public abstract String
public abstract String
getId(String principal)
protected static boolean
protected String
protected Preferences
public abstract String
protected void
Field Detail
APPLICATION_AUTHENTICATOR
protected final static String APPLICATION_AUTHENTICATOR = Config.APPLICATION + "/authenticator"

APPLICATION_AUTHENTICATOR_CLASS
protected final static String APPLICATION_AUTHENTICATOR_CLASS = APPLICATION_AUTHENTICATOR + "/@class"

APPLICATION_AUTHENTICATOR_CLASS_DEFAULT
protected final static String APPLICATION_AUTHENTICATOR_CLASS_DEFAULT = "net.jxta.myjxta.util.LDAPAuthenticator"

APPLICATION_AUTHENTICATOR_IS_VERBOSE
protected final static String APPLICATION_AUTHENTICATOR_IS_VERBOSE = APPLICATION_AUTHENTICATOR + "/@isVerbose"

authenticator
private static Authenticator authenticator = null

CLASS_RULE
private final static String CLASS_RULE = "class"

LOCK
private final static Object LOCK = new Object()

name
private String name = null

prefs
protected Preferences prefs = null

VERBOSE_RULE
private final static String VERBOSE_RULE = "verbose"
Constructor Detail
Authenticator
protected Authenticator()
Method Detail
authenticate
public abstract boolean authenticate(String credentials)

authenticate
public abstract boolean authenticate(String principal, String credentials)

configure
public static void configure()
Throws:
IllegalArgumentException

create
private static Authenticator create(String name)
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
IllegalArgumentException

factory
public static Authenticator factory()
Throws:
IllegalStateException

factory
public static Authenticator factory(boolean newInstance)
Throws:
IllegalStateException

getId
public abstract String getId()

getId
public abstract String getId(String principal)

getIsVerbose
protected static boolean getIsVerbose()

getName
protected String getName()

getPreferences
protected Preferences getPreferences()

getPrincipal
public abstract String getPrincipal()

process
protected void process(ResourceManager resources)
Throws:
IllegalArgumentException