public interface AuthInterface
Modifier and Type | Field and Description |
---|---|
static short |
GROUPDESINDEX |
static short |
GROUPNAMEINDEX |
static short |
USERCNINDEX |
static short |
USERDNINDEX |
static short |
USEREMAILINDEX |
static short |
USERINFOCNINDEX |
static short |
USERINFOEMAILINDEX |
static short |
USERINFOORGANIDEX |
static short |
USERORGINDEX |
static short |
USERORGUNITINDEX |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.lang.String user,
java.lang.String password)
Determine if a user/password are valid according to the authentication
service.
|
java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> |
getAttributes(java.lang.String foruser)
Get attributes describing a user or group
|
java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> |
getAttributes(java.lang.String user,
java.lang.String password,
java.lang.String foruser)
Get attributes describing a user or group
|
java.lang.String[][] |
getGroups(java.lang.String user,
java.lang.String password)
Get all groups from the authentication service
|
java.lang.String[][] |
getGroups(java.lang.String user,
java.lang.String password,
java.lang.String foruser)
Get the groups for a particular user from the authentication service
|
java.lang.String |
getPrincipals(java.lang.String user,
java.lang.String password)
Get all groups and users from authentication service.
|
java.lang.String[] |
getUserInfo(java.lang.String user,
java.lang.String password)
Get information for a user - name, organization and email address.
|
java.lang.String[][] |
getUsers(java.lang.String user,
java.lang.String password)
Get all users from the authentication service
|
java.lang.String[] |
getUsers(java.lang.String user,
java.lang.String password,
java.lang.String group)
Get the users for a particular group from the authentication service
|
static final short USERDNINDEX
static final short USERCNINDEX
static final short USERORGINDEX
static final short USERORGUNITINDEX
static final short USEREMAILINDEX
static final short GROUPNAMEINDEX
static final short GROUPDESINDEX
static final short USERINFOCNINDEX
static final short USERINFOORGANIDEX
static final short USERINFOEMAILINDEX
boolean authenticate(java.lang.String user, java.lang.String password) throws java.net.ConnectException
user
- the name of the principal to authenticatepassword
- the password to use for authenticationjava.net.ConnectException
java.lang.String[][] getUsers(java.lang.String user, java.lang.String password) throws java.net.ConnectException
java.net.ConnectException
java.lang.String[] getUserInfo(java.lang.String user, java.lang.String password) throws java.net.ConnectException
java.net.ConnectException
java.lang.String[] getUsers(java.lang.String user, java.lang.String password, java.lang.String group) throws java.net.ConnectException
java.net.ConnectException
java.lang.String[][] getGroups(java.lang.String user, java.lang.String password) throws java.net.ConnectException
java.net.ConnectException
java.lang.String[][] getGroups(java.lang.String user, java.lang.String password, java.lang.String foruser) throws java.net.ConnectException
java.net.ConnectException
java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> getAttributes(java.lang.String foruser) throws java.net.ConnectException
user
- the user for which the attribute list is requestedjava.net.ConnectException
java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> getAttributes(java.lang.String user, java.lang.String password, java.lang.String foruser) throws java.net.ConnectException
user
- the user for which the attribute list is requestedauthuser
- the user for authenticating against the servicepassword
- the password for authenticating against the servicejava.net.ConnectException
java.lang.String getPrincipals(java.lang.String user, java.lang.String password) throws java.net.ConnectException
user
- the user which requests the informationpassword
- the user's passwordjava.net.ConnectException
Copyright © 2020 Regents of the University of California. All Rights Reserved.