Package org.appng.api.model
Interface AuthSubject
-
- All Superinterfaces:
Account
- All Known Subinterfaces:
Subject
- All Known Implementing Classes:
SubjectImpl
public interface AuthSubject extends Account
AnAuthSubjectprovides some user-credentials.- Author:
- Matthias Müller
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAuthSubject.PasswordChangePolicyThe policy for changing the subject's password
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetDigest()Returns the salted digest for thisAuthSubject.default AuthSubject.PasswordChangePolicygetPasswordChangePolicy()Returns theAuthSubject.PasswordChangePolicyfor this subjectStringgetSalt()Returns the salt for thisAuthSubject.voidsetDigest(String digest)Sets the salted digest for thisAuthSubject.default voidsetPasswordChangePolicy(AuthSubject.PasswordChangePolicy passwordChangePolicy)Sets theAuthSubject.PasswordChangePolicyto use.default voidsetPasswordLastChanged(Date date)Sets the date when the password was last changedvoidsetSalt(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.PasswordChangePolicyfor this subject- Returns:
- the
AuthSubject.PasswordChangePolicyfor this subject - Since:
- 1.21
-
setPasswordChangePolicy
default void setPasswordChangePolicy(AuthSubject.PasswordChangePolicy passwordChangePolicy)
Sets theAuthSubject.PasswordChangePolicyto 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
-
-