Package org.appng.api.model
Interface AuthSubject
-
- All Superinterfaces:
Account
- All Known Subinterfaces:
Subject
- All Known Implementing Classes:
SubjectImpl
public interface AuthSubject extends Account
AnAuthSubject
provides some user-credentials.- Author:
- Matthias Müller
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AuthSubject.PasswordChangePolicy
The policy for changing the subject's password
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getDigest()
Returns the salted digest for thisAuthSubject
.default AuthSubject.PasswordChangePolicy
getPasswordChangePolicy()
Returns theAuthSubject.PasswordChangePolicy
for this subjectString
getSalt()
Returns the salt for thisAuthSubject
.void
setDigest(String digest)
Sets the salted digest for thisAuthSubject
.default void
setPasswordChangePolicy(AuthSubject.PasswordChangePolicy passwordChangePolicy)
Sets theAuthSubject.PasswordChangePolicy
to use.default void
setPasswordLastChanged(Date date)
Sets the date when the password was last changedvoid
setSalt(String salt)
Sets the salt for thisAuthSubject
.-
Methods inherited from interface org.appng.api.model.Account
getAuthName, getEmail, getLanguage, getRealname, getTimeZone
-
-
-
-
Method Detail
-
getDigest
String getDigest()
Returns the salted digest for thisAuthSubject
.- Returns:
- the salted digest
-
getSalt
String getSalt()
Returns the salt for thisAuthSubject
.- Returns:
- the salt
-
setSalt
void setSalt(String salt)
Sets the salt for thisAuthSubject
.- Parameters:
salt
- the salt
-
setDigest
void setDigest(String digest)
Sets the salted digest for thisAuthSubject
.- Parameters:
digest
- the digest
-
getPasswordChangePolicy
default AuthSubject.PasswordChangePolicy getPasswordChangePolicy()
Returns theAuthSubject.PasswordChangePolicy
for this subject- Returns:
- the
AuthSubject.PasswordChangePolicy
for this subject - Since:
- 1.21
-
setPasswordChangePolicy
default void setPasswordChangePolicy(AuthSubject.PasswordChangePolicy passwordChangePolicy)
Sets theAuthSubject.PasswordChangePolicy
to use.- Parameters:
passwordChangePolicy
- the policy to use- Since:
- 1.21
-
setPasswordLastChanged
default void setPasswordLastChanged(Date date)
Sets the date when the password was last changed- Parameters:
date
- the date- Since:
- 1.21
-
-