Class AuthIdentification
- java.lang.Object
-
- com.helger.security.authentication.result.AuthIdentification
-
- All Implemented Interfaces:
com.helger.commons.state.ISuccessIndicator,IAuthIdentification
@Immutable public final class AuthIdentification extends Object implements IAuthIdentification
Default implementation of theIAuthIdentificationinterface.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description AuthIdentification(IAuthSubject aSubject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IAuthSubjectgetAuthSubject()LocalDateTimegetIdentificationDateTime()Method to retrieve the time stamp of when this object was created.inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.security.authentication.result.IAuthIdentification
hasAuthSubject, isSuccess
-
-
-
-
Constructor Detail
-
AuthIdentification
public AuthIdentification(@Nullable IAuthSubject aSubject)
- Parameters:
aSubject- The auth subject that was authenticated. May benullif authentication failed.
-
-
Method Detail
-
getAuthSubject
@Nullable public IAuthSubject getAuthSubject()
- Specified by:
getAuthSubjectin interfaceIAuthIdentification- Returns:
- The identified subject. May be
nullif no subject matched the credentials.
-
getIdentificationDateTime
@Nonnull public LocalDateTime getIdentificationDateTime()
Description copied from interface:IAuthIdentificationMethod to retrieve the time stamp of when this object was created.- Specified by:
getIdentificationDateTimein interfaceIAuthIdentification- Returns:
- The date and time the identification occurred. Never
null.
-
-