All Packages Class Hierarchy This Package Previous Next Index
Class com.netscape.certsrv.authentication.FlatFileAuth
com.netscape.certsrv.authentication.FlatFileAuth
- public class FlatFileAuth
- implements IAuthManager
-
entries
- Hashtable of entries from Auth File.
-
FFAUTH
-
-
mAppendDN
-
-
mAuthAttrs
-
-
mConfig
- configuration store
-
mConfigParams
-
-
mDeferOnFailure
-
-
mFileLastRead
-
-
mFilename
-
-
mImplName
- name of the authentication manager plugin
-
mKeyAttributes
-
-
mLogger
- system logger
-
mName
- name of this authentication manager instance
-
PROP_APPENDDN
-
-
PROP_AUTHATTRS
-
-
PROP_DEFERONFAILURE
-
-
PROP_FILENAME
-
-
PROP_KEYATTRIBUTES
-
-
FlatFileAuth()
-
-
authenticate(IAuthCredentials)
- Authenticate the request
-
getConfigParams()
- Returns a list of configuration parameters, so the console
can prompt the user when configuring.
-
getConfigStore()
- Returns the configuration store used by this authentication manager
-
getImplName()
-
-
getName()
-
-
getPropertyB(String, boolean)
- Get the named property,
If the property is not set, use b as the default, and create
a new value for the property in the config file.
-
getPropertyS(String, String)
- Get the named property
If the property is not set, use s as the default, and create
a new value for the property in the config file.
-
getRequiredCreds()
- Return a list of HTTP parameters which will be taken from the
request posting and placed into the AuthCredentials block
Note that this method will not be called until after the
init() method is called
-
init(String, String, IConfigStore)
-
-
readFile(File, String[])
- Read a file with the following format:
param1: valuea
param2: valueb
-blank-line-
param1: valuec
param2: valued
-
shutdown()
-
-
unionOfStrings(String[][])
- Return a string array which is the union of all the string arrays
passed in.
PROP_FILENAME
protected static final String PROP_FILENAME
PROP_KEYATTRIBUTES
protected static final String PROP_KEYATTRIBUTES
PROP_AUTHATTRS
protected static final String PROP_AUTHATTRS
PROP_APPENDDN
protected static final String PROP_APPENDDN
PROP_DEFERONFAILURE
protected static final String PROP_DEFERONFAILURE
mFilename
protected String mFilename
mFileLastRead
protected long mFileLastRead
mKeyAttributes
protected String mKeyAttributes
mAuthAttrs
protected String mAuthAttrs
mAppendDN
protected String mAppendDN
mDeferOnFailure
protected boolean mDeferOnFailure
mConfigParams
protected static String mConfigParams[]
mName
protected String mName
- name of this authentication manager instance
FFAUTH
protected String FFAUTH
mImplName
protected String mImplName
- name of the authentication manager plugin
mConfig
protected IConfigStore mConfig
- configuration store
mLogger
protected Logger mLogger
- system logger
entries
protected Hashtable entries
- Hashtable of entries from Auth File. Hash index is the
concatenation of the attributes from matchAttributes property
FlatFileAuth
public FlatFileAuth()
getPropertyS
protected String getPropertyS(String propertyName,
String s) throws EBaseException
- Get the named property
If the property is not set, use s as the default, and create
a new value for the property in the config file.
- Parameters:
- propertyName - Property name
- s - The default value of the property
getPropertyB
protected boolean getPropertyB(String propertyName,
boolean b) throws EBaseException
- Get the named property,
If the property is not set, use b as the default, and create
a new value for the property in the config file.
- Parameters:
- propertyName - Property name
- b - The default value of the property
init
public void init(String name,
String implName,
IConfigStore config) throws EBaseException
unionOfStrings
public String[] unionOfStrings(String stringArrays[][])
- Return a string array which is the union of all the string arrays
passed in. The strings are treated as case sensitive
readFile
protected Hashtable readFile(File f,
String keys[]) throws IOException
- Read a file with the following format:
param1: valuea
param2: valueb
-blank-line-
param1: valuec
param2: valued
- Parameters:
- fileName - The file's full pathname
- keys - The parameters to concat together to form the hash
key
- Returns:
- a hashtable of hashtables.
authenticate
public AuthToken authenticate(IAuthCredentials authCred) throws EMissingCredential, EInvalidCredentials, EBaseException
- Authenticate the request
getRequiredCreds
public String[] getRequiredCreds()
- Return a list of HTTP parameters which will be taken from the
request posting and placed into the AuthCredentials block
Note that this method will not be called until after the
init() method is called
getConfigParams
public String[] getConfigParams()
- Returns a list of configuration parameters, so the console
can prompt the user when configuring.
getConfigStore
public IConfigStore getConfigStore()
- Returns the configuration store used by this authentication manager
shutdown
public void shutdown()
getName
public String getName()
getImplName
public String getImplName()
All Packages Class Hierarchy This Package Previous Next Index