RegisterResponseData

public class RegisterResponseData extends ResponseData

This class is deprecated.
Please use Fido APIs instead.

A utility class to produce a U2F RegisterResponse object.

Example of handling response data:


 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (resultCode != RESULT_OK) {
     // Something went wrong
   }

   switch(requestCode) {
     case REGISTER_REQUEST_CODE:
       RegisterResponseData registerResponse = (RegisterResponseData) data
           .getParcelableExtra(Fido.KEY_RESPONSE_EXTRA);
       // Do something useful
       break;
     case SIGN_REQUEST_CODE:
       SignResponseData signResponse = (SignResponseData) data
           .getParcelableExtra(Fido.KEY_RESPONSE_EXTRA);
       // Do something useful
       break;
     default:
       // Something went wrong
   }
 }
 

See //fidoalliance.org/specs/fido-u2f-v1.0-nfc-bt-amendment-20150514/fido-u2f-javascript-api.html#dictionary-registerresponse-members.

Inherited Constant Summary

Public Method Summary

boolean
String
ProtocolVersion
byte[]
int
JSONObject
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Public Methods

public boolean equals (Object obj)

public String getClientDataString ()

public ProtocolVersion getProtocolVersion ()

public byte[] getRegisterData ()

public int hashCode ()

public JSONObject toJSONObject ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)