Added in API level 31

AppUriAuthenticationPolicy

class AppUriAuthenticationPolicy : Parcelable
kotlin.Any
   ↳ android.security.AppUriAuthenticationPolicy

The app-URI authentication policy is set by the credential management app. This policy determines which alias for a private key and certificate pair should be used for authentication.

The authentication policy should be added as a parameter when calling KeyChain#createManageCredentialsIntent.

Example:

<code>AppUriAuthenticationPolicy authenticationPolicy = new AppUriAuthenticationPolicy.Builder()
               .addAppAndUriMapping("com.test.pkg", testUri, "testAlias")
               .addAppAndUriMapping("com.test2.pkg", testUri1, "testAlias2")
               .addAppAndUriMapping("com.test2.pkg", testUri2, "testAlias2")
               .build();
      Intent requestIntent = KeyChain.createManageCredentialsIntent(authenticationPolicy);
  </code>

Summary

Nested classes

Builder class for AppUriAuthenticationPolicy objects.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

MutableMap<String!, MutableMap<Uri!, String!>!>

Return the authentication policy mapping, which determines which alias for a private key and certificate pair should be used for authentication.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<AppUriAuthenticationPolicy!>

Public methods

describeContents

Added in API level 31
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 31
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getAppAndUriMappings

Added in API level 31
fun getAppAndUriMappings(): MutableMap<String!, MutableMap<Uri!, String!>!>

Return the authentication policy mapping, which determines which alias for a private key and certificate pair should be used for authentication.

appPackageName -> uri -> alias

Return
MutableMap<String!, MutableMap<Uri!, String!>!> This value cannot be null.

hashCode

Added in API level 31
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 31
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 31
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 31
static val CREATOR: Parcelable.Creator<AppUriAuthenticationPolicy!>