Class PublicKeyCredentialSource

  • All Implemented Interfaces:
    android.os.Parcelable

    public class PublicKeyCredentialSource
    extends java.lang.Object
    implements android.os.Parcelable
    Representation of Public Key Credential Source that received after WebAuthn registration.
    • Constructor Detail

      • PublicKeyCredentialSource

        public PublicKeyCredentialSource​(byte[] id,
                                         java.lang.String type,
                                         java.lang.String rpid,
                                         byte[] userHandle,
                                         java.lang.String otherUI)
      • PublicKeyCredentialSource

        protected PublicKeyCredentialSource​(android.os.Parcel in)
    • Method Detail

      • toJson

        public org.json.JSONObject toJson()
        Convert PublicKeyCredentialSource to JSONObject
        Returns:
        The result JSONObject
      • toDescriptor

        public com.google.android.gms.fido.fido2.api.common.PublicKeyCredentialDescriptor toDescriptor()
        Convert PublicKeyCredentialSource to PublicKeyCredentialDescriptor
        Returns:
        The result PublicKeyCredentialDescriptor
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • getId

        public byte[] getId()
      • getType

        public java.lang.String getType()
      • getRpid

        public java.lang.String getRpid()
      • getUserHandle

        public byte[] getUserHandle()
      • getOtherUI

        public java.lang.String getOtherUI()