Class 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 Detail

      • VivoAuthResult

        public VivoAuthResult()
        Default constructor.
    • 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 - Map of key-value pairs.
      • getKV

        public Map<String,​String> getKV()
        Gets the key-value pairs previously set.
        Returns:
        Map of key-value pairs.