public class AuthLdap extends Object
| Constructor and Description |
|---|
AuthLdap()
Construct an AuthLdap
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String user,
String password)
Determine if a user/password are valid according to the authentication
service.
|
HashMap<String,Vector<String>> |
getAttributes(String foruser)
Get attributes describing a user or group
|
org.dataone.service.types.v1.SubjectInfo |
getSubjectInfo(String username) |
String[] |
getUserInfo(String user,
String password)
Get all users from the authentication service
|
public AuthLdap()
throws InstantiationException
InstantiationExceptionpublic boolean authenticate(String user, String password) throws ConnectException
user - the name of the principal to authenticatepassword - the password to use for authenticationConnectExceptionpublic org.dataone.service.types.v1.SubjectInfo getSubjectInfo(String username)
public String[] getUserInfo(String user, String password) throws ConnectException
user - the user for authenticating against the servicepassword - the password for authenticating against the serviceConnectExceptionpublic HashMap<String,Vector<String>> getAttributes(String foruser) throws ConnectException
foruser - the user for which the attribute list is requestedConnectExceptionCopyright © 2020. All rights reserved.