OSDN Git Service

Make SIP AuthName APIs public.
authorChung-yih Wang <cywang@google.com>
Thu, 10 Feb 2011 07:20:41 +0000 (15:20 +0800)
committerChung-yih Wang <cywang@google.com>
Thu, 17 Feb 2011 07:06:08 +0000 (15:06 +0800)
bug:3326867
Change-Id: I766e6e28f6ad3e84de2c9e24850d472ad00271cc

api/current.xml
voip/java/android/net/sip/SipProfile.java

index e56bff8..baf1ed3 100644 (file)
  visibility="public"
 >
 </method>
+<method name="getAuthUserName"
+ return="java.lang.String"
+ abstract="false"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</method>
 <method name="getAutoRegistration"
  return="boolean"
  abstract="false"
  visibility="public"
 >
 </method>
+<method name="setAuthUserName"
+ return="android.net.sip.SipProfile.Builder"
+ abstract="false"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<parameter name="name" type="java.lang.String">
+</parameter>
+</method>
 <method name="setAutoRegistration"
  return="android.net.sip.SipProfile.Builder"
  abstract="false"
index c7e18df..34d91dd 100644 (file)
@@ -150,9 +150,8 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {
         /**
          * Sets the username used for authentication.
          *
-         * @param name authname of the profile
+         * @param name authentication username of the profile
          * @return this builder object
-         * @hide // TODO: remove when we make it public
          */
         public Builder setAuthUserName(String name) {
             mProfile.mAuthUserName = name;
@@ -391,10 +390,10 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {
 
     /**
      * Gets the username for authentication. If it is null, then the username
-     * should be used in authentication instead.
+     * is used in authentication instead.
      *
-     * @return the auth. username
-     * @hide // TODO: remove when we make it public
+     * @return the authentication username
+     * @see #getUserName
      */
     public String getAuthUserName() {
         return mAuthUserName;