public class AuthenticationResponse extends Response<Boolean>
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, getResultCode
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 © 2018. All rights reserved.