public class DpAuthContext extends Object
Constructor and Description |
---|
DpAuthContext(DpUserInfo uinfo,
String method,
boolean success,
int ngroups,
String[] groups,
int logno,
String reason,
String errstr) |
Modifier and Type | Method and Description |
---|---|
String |
getErrorString()
errstr is an extended error information that can be set using method
setError() and is used in the response if the auth() callback returns
false;
|
String[] |
getGroups()
If success is true, the AAA authentication succeeded, and groups is an
array of length ngroups that gives the groups that will be assigned to
the user at login.
|
int |
getLogNo()
If success is false, the AAA authentication failed (with logno set
to CONFD_AUTH_LOGIN_FAIL).
|
String |
getMethod()
The method string gives the authentication method used, as follows:
|
int |
getNumGroups()
If success is true, the AAA authentication succeeded, ngroups is the
number of groups that will be assigned to the user at login.
|
String |
getReason()
If success is false, the AAA authentication failed, reason is a
explanatory string reason.
|
DpUserInfo |
getUserInfo()
The uinfo contains an instance of DpUserInfo with details about the user
logging in, specifically user name, password (if used), source IP
address, context, and protocol.
|
boolean |
isSuccess()
success is true if the user is accepted so far (before call of auth()
callback)
return boolean true if success
|
void |
setError(String fmt,
Object... arguments) |
public DpAuthContext(DpUserInfo uinfo, String method, boolean success, int ngroups, String[] groups, int logno, String reason, String errstr)
public DpUserInfo getUserInfo()
public String getMethod()
"password" Password authentication. This generic term is used if the authentication failed. "local", "pam", "external" Password authentication. On successful authentication, the specific method that succeeded is given. See the AAA chapter in the User Guide for an explanation of these methods. "publickey" Public key authentication via the internal SSH server. Other Authentication with an unknown or unsupported method with this name was attempted via the internal SSH server.
public boolean isSuccess()
public int getNumGroups()
public String[] getGroups()
public int getLogNo()
public String getReason()
public String getErrorString()