public class AuthenticationResponse extends Response<Boolean>
| Modifier and Type | Field and Description |
|---|---|
private AccountState |
accountState
Account state.
|
private AuthenticationResultCode |
authenticationResultCode
Result of the authentication operation.
|
private LdapEntry |
ldapEntry
Ldap entry of authenticated user.
|
private String |
resolvedDn
Resolved DN.
|
ENCODE_CNTRL_CHARS, encodeCntrlChars| Constructor and Description |
|---|
AuthenticationResponse(AuthenticationResultCode authRc,
ResultCode rc,
String dn,
LdapEntry entry)
Creates a new authentication response.
|
AuthenticationResponse(AuthenticationResultCode authRc,
ResultCode rc,
String dn,
LdapEntry entry,
String msg)
Creates a new authentication response.
|
AuthenticationResponse(AuthenticationResultCode authRc,
ResultCode rc,
String dn,
LdapEntry entry,
String msg,
ResponseControl[] controls,
int msgId)
Creates a new authentication response.
|
| Modifier and Type | Method and Description |
|---|---|
AccountState |
getAccountState()
Returns the account state associated with the authenticated user.
|
AuthenticationResultCode |
getAuthenticationResultCode()
Returns the result code associated with the authentication operation.
|
LdapEntry |
getLdapEntry()
Returns the ldap entry of the authenticated user.
|
String |
getResolvedDn()
Returns the DN that was resolved in order to perform authentication.
|
void |
setAccountState(AccountState state)
Sets the account state for the authenticated user.
|
String |
toString() |
getControl, getControls, getMatchedDn, getMessage, getMessageId, getReferralURLs, getResult, getResultCodeprivate final AuthenticationResultCode authenticationResultCode
private final String resolvedDn
private final LdapEntry ldapEntry
private AccountState accountState
public AuthenticationResponse(AuthenticationResultCode authRc, ResultCode rc, String dn, LdapEntry entry)
authRc - authentication result coderc - result code from the underlying ldap operationdn - produced by the DN resolverentry - of the authenticated userpublic AuthenticationResponse(AuthenticationResultCode authRc, ResultCode rc, String dn, LdapEntry entry, String msg)
authRc - authentication result coderc - result code from the underlying ldap operationdn - produced by the DN resolverentry - of the authenticated usermsg - authentication messagepublic AuthenticationResponse(AuthenticationResultCode authRc, ResultCode rc, String dn, LdapEntry entry, String msg, ResponseControl[] controls, int msgId)
authRc - authentication result coderc - result code from the underlying ldap operationdn - produced by the DN resolverentry - of the authenticated usermsg - authentication messagecontrols - response controls from the underlying ldap operationmsgId - message id from the underlying ldap operationpublic AuthenticationResultCode getAuthenticationResultCode()
public String getResolvedDn()
public LdapEntry getLdapEntry()
public AccountState getAccountState()
public void setAccountState(AccountState state)
state - for this userCopyright © 2003-2019 Virginia Tech. All Rights Reserved.