public interface Credential
| Modifier and Type | Method and Description |
|---|---|
String |
getHash()
Get a hash value for the credential data.
|
String |
getId() |
org.joda.time.DateTime |
getLastCheck() |
String |
getScheduleId() |
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.
|
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())String getSchoolId()
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 checkedString getId()