Package io.jans.casa.credential
Class BasicCredential
java.lang.Object
io.jans.casa.credential.BasicCredential
A POJO holding basic data of an enrolled credential (authentication device).
- Author:
- jgomer
-
Constructor Summary
ConstructorsConstructorDescriptionBasicCredential(String nickName, long addedOn) Creates an instances of this class using the values supplied in the parameters. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the date this credential was enrolled on (milliseconds since January 1, 1970, 00:00:00 GMT)Gets the nickname of this credential.
-
Constructor Details
-
BasicCredential
Creates an instances of this class using the values supplied in the parameters.- Parameters:
nickName- Nickname of this credentialaddedOn- Timestamp describing the moment (wrt to UNIX epoch) in which the device was enrolled
-
-
Method Details
-
getNickName
Gets the nickname of this credential.- Returns:
- A String
-
getAddedOn
public long getAddedOn()Gets the date this credential was enrolled on (milliseconds since January 1, 1970, 00:00:00 GMT)- Returns:
- A long value
-