Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90aba177 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cred mng app URI documentation" into sc-dev

parents f7bf52bc c271813d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.security;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.app.Activity;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
@@ -27,6 +28,7 @@ import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlSerializer;

import java.io.IOException;
import java.security.Principal;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
@@ -89,6 +91,13 @@ public final class AppUriAuthenticationPolicy implements Parcelable {
         * <p>
         * If this method is called with a package name and URI that was previously added, the
         * previous alias will be overwritten.
         * <p>
         * When the system tries to determine which alias to return to a requesting app calling
         * {@code KeyChain.choosePrivateKeyAlias}, it will choose the alias whose associated URI
         * exactly matches the URI provided in {@link KeyChain#choosePrivateKeyAlias(
         * Activity, KeyChainAliasCallback, String[], Principal[], Uri, String)} or the URI
         * built from the host and port provided in {@link KeyChain#choosePrivateKeyAlias(
         * Activity, KeyChainAliasCallback, String[], Principal[], String, int, String)}.
         *
         * @param appPackageName The app's package name to authenticate the user to.
         * @param uri            The URI to authenticate the user to.