public interface Credential
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHash()
Get a hash value for the credential data.
|
java.lang.String |
getId() |
org.joda.time.DateTime |
getLastCheck() |
java.lang.String |
getScheduleId() |
java.lang.String |
getSchoolId() |
boolean |
isValid() |
void |
setLastCheck(org.joda.time.DateTime lastCheck)
Set the last time this credential was checked.
|
void |
setValid(boolean valid)
Set if this credential is believed to be valid.
|
java.lang.String getHash()
SubstitutionScheduleParser
implementations, especially not if they depend on a specific hashing algorithm.
For two Credential objects a and b, the following relation should apply:
a.getHash().equals(b.getHash()) if and only if a.getLoginData().equals(b.getLoginData())java.lang.String getSchoolId()
java.lang.String getScheduleId()
boolean isValid()
SubstitutionScheduleParser implementations.void setValid(boolean valid)
valid - if this credential is believed to be validorg.joda.time.DateTime getLastCheck()
SubstitutionScheduleParser implementations.void setLastCheck(org.joda.time.DateTime lastCheck)
lastCheck - last time this credential was checkedjava.lang.String getId()