Package edu.ucsb.nceas.metacat
Interface AuthInterface
public interface AuthInterface
An interface representing the methods that should be
 implemented by an authentication service.  The authentication service is
 used to determine if a user is authenticated, and whether they are a member
 of a particular group.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short - 
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String user, String password) Determine if a user/password are valid according to the authentication service.getAttributes(String foruser) Get attributes describing a user or groupgetAttributes(String user, String password, String foruser) Get attributes describing a user or groupString[][]Get all groups from the authentication serviceString[][]Get the groups for a particular user from the authentication servicegetPrincipals(String user, String password) Get all groups and users from authentication service.String[]getUserInfo(String user, String password) Get information for a user - name, organization and email address.String[][]Get all users from the authentication serviceString[]Get the users for a particular group from the authentication service 
- 
Field Details
- 
USERDNINDEX
static final short USERDNINDEX- See Also:
 
 - 
USERCNINDEX
static final short USERCNINDEX- See Also:
 
 - 
USERORGINDEX
static final short USERORGINDEX- See Also:
 
 - 
USERORGUNITINDEX
static final short USERORGUNITINDEX- See Also:
 
 - 
USEREMAILINDEX
static final short USEREMAILINDEX- See Also:
 
 - 
GROUPNAMEINDEX
static final short GROUPNAMEINDEX- See Also:
 
 - 
GROUPDESINDEX
static final short GROUPDESINDEX- See Also:
 
 - 
USERINFOCNINDEX
static final short USERINFOCNINDEX- See Also:
 
 - 
USERINFOORGANIDEX
static final short USERINFOORGANIDEX- See Also:
 
 - 
USERINFOEMAILINDEX
static final short USERINFOEMAILINDEX- See Also:
 
 
 - 
 - 
Method Details
- 
authenticate
Determine if a user/password are valid according to the authentication service.- Parameters:
 user- the name of the principal to authenticatepassword- the password to use for authentication- Throws:
 ConnectException
 - 
getUsers
Get all users from the authentication service- Throws:
 ConnectException
 - 
getUserInfo
Get information for a user - name, organization and email address.- Throws:
 ConnectException
 - 
getUsers
Get the users for a particular group from the authentication service- Throws:
 ConnectException
 - 
getGroups
Get all groups from the authentication service- Throws:
 ConnectException
 - 
getGroups
Get the groups for a particular user from the authentication service- Throws:
 ConnectException
 - 
getAttributes
Get attributes describing a user or group- Parameters:
 user- the user for which the attribute list is requested- Throws:
 ConnectException
 - 
getAttributes
HashMap<String,Vector<String>> getAttributes(String user, String password, String foruser) throws ConnectException Get attributes describing a user or group- Parameters:
 user- the user for which the attribute list is requestedauthuser- the user for authenticating against the servicepassword- the password for authenticating against the service- Throws:
 ConnectException
 - 
getPrincipals
Get all groups and users from authentication service. The output is formatted in XML.- Parameters:
 user- the user which requests the informationpassword- the user's password- Throws:
 ConnectException
 
 -