Package com.vivokey.chipscanlib
Class VivoAuthResult
- java.lang.Object
-
- com.vivokey.chipscanlib.VivoAuthResult
-
public class VivoAuthResult extends Object
Stores the details of an authentication to the VivoKey Chipscan API. Will be returned by a VivoAuthenticator once finished and requested. See example app for details.
-
-
Constructor Summary
Constructors Constructor Description VivoAuthResult()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChall()
Get the challenge for this authentication.String
getChipid()
Get a chip ID, if returned by the API.String
getIDtype()
Get the ID type.Map<String,String>
getKV()
Gets the key-value pairs previously set.String
getMemberid()
Get a member ID, if returned by the API.void
processJson(String json)
Processes API JSON to populate chip/member IDs.void
setChall(String chall)
Set the challenge for this authentication.void
setKV(Map<String,String> vals)
Sets the key-value pairs of this result from a get.
-
-
-
Method Detail
-
processJson
public void processJson(String json)
Processes API JSON to populate chip/member IDs.- Parameters:
json
- String containing the result from the check-response API call.
-
setChall
public void setChall(String chall)
Set the challenge for this authentication. Used for key-value stuff.- Parameters:
chall
- the challenge used.
-
getChall
public String getChall()
Get the challenge for this authentication.- Returns:
- the challenge set.
-
getIDtype
public String getIDtype()
Get the ID type.- Returns:
- chip, member or chip-member. Represents the type of IDs found.
-
getChipid
public String getChipid()
Get a chip ID, if returned by the API.- Returns:
- a chip id, in hex string format.
-
getMemberid
public String getMemberid()
Get a member ID, if returned by the API.- Returns:
- a member id, in hex string format.
-
setKV
public void setKV(Map<String,String> vals)
Sets the key-value pairs of this result from a get.- Parameters:
vals
- Mapof key-value pairs.
-
-