Package org.ldaptive.auth.ext
Class ActiveDirectoryAccountState
- java.lang.Object
-
- org.ldaptive.auth.AccountState
-
- org.ldaptive.auth.ext.ActiveDirectoryAccountState
-
public class ActiveDirectoryAccountState extends AccountState
Represents the state of an Active Directory account. Note that the warning returned by this implementation always returns -1 for logins remaining.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActiveDirectoryAccountState.Error
Enum to define active directory errors.-
Nested classes/interfaces inherited from class org.ldaptive.auth.AccountState
AccountState.DefaultWarning, AccountState.Warning
-
-
Field Summary
Fields Modifier and Type Field Description private ActiveDirectoryAccountState.Error
adError
active directory specific enum.
-
Constructor Summary
Constructors Constructor Description ActiveDirectoryAccountState(ZonedDateTime exp)
Creates a new active directory account state.ActiveDirectoryAccountState(ActiveDirectoryAccountState.Error error)
Creates a new active directory account state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActiveDirectoryAccountState.Error
getActiveDirectoryError()
Returns the active directory error for this account state.-
Methods inherited from class org.ldaptive.auth.AccountState
getError, getErrors, getWarning, getWarnings, toString
-
-
-
-
Field Detail
-
adError
private final ActiveDirectoryAccountState.Error adError
active directory specific enum.
-
-
Constructor Detail
-
ActiveDirectoryAccountState
public ActiveDirectoryAccountState(ZonedDateTime exp)
Creates a new active directory account state.- Parameters:
exp
- account expiration
-
ActiveDirectoryAccountState
public ActiveDirectoryAccountState(ActiveDirectoryAccountState.Error error)
Creates a new active directory account state.- Parameters:
error
- containing authentication failure details
-
-
Method Detail
-
getActiveDirectoryError
public ActiveDirectoryAccountState.Error getActiveDirectoryError()
Returns the active directory error for this account state.- Returns:
- active directory error
-
-