Added in API level 26

UserCredential


class UserCredential : Parcelable
kotlin.Any
   ↳ android.net.wifi.hotspot2.pps.Credential.UserCredential

Username-password based credential. Contains the fields under PerProviderSubscription/Credential/UsernamePassword subtree.

Summary

Inherited constants
Public constructors

Constructor for creating UserCredential with default values.

Copy constructor.

Public methods
Int

Boolean
equals(other: Any?)

Int

Get the EAP (Extensible Authentication Protocol) method type associated with this user credential.

String!

Get the inner non-EAP method associated with this user credential.

String!

Get the Base64-encoded password associated with this user credential.

String!

Get the username associated with this user credential.

Int

Unit
setEapType(eapType: Int)

Set the EAP (Extensible Authentication Protocol) method type associated with this user credential.

Unit
setNonEapInnerMethod(nonEapInnerMethod: String!)

Set the inner non-EAP method associated with this user credential.

Unit
setPassword(password: String!)

Set the Base64-encoded password associated with this user credential.

Unit
setUsername(username: String!)

Set the username associated with this user credential.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties
static Parcelable.Creator<Credential.UserCredential!>

Public constructors

UserCredential

Added in API level 26
UserCredential()

Constructor for creating UserCredential with default values.

UserCredential

Added in API level 26
UserCredential(source: Credential.UserCredential!)

Copy constructor.

Parameters
source Credential.UserCredential!: The source to copy from

Public methods

describeContents

Added in API level 26
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 26
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.

getEapType

Added in API level 26
fun getEapType(): Int

Get the EAP (Extensible Authentication Protocol) method type associated with this user credential.

Return
Int EAP method type

getNonEapInnerMethod

Added in API level 26
fun getNonEapInnerMethod(): String!

Get the inner non-EAP method associated with this user credential.

Return
String! Non-EAP inner method associated with this user credential

getPassword

Added in API level 26
fun getPassword(): String!

Get the Base64-encoded password associated with this user credential.

Return
String! the Base64-encoded password associated with this user credential

getUsername

Added in API level 26
fun getUsername(): String!

Get the username associated with this user credential.

Return
String! the username associated with this user credential

hashCode

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

setEapType

Added in API level 26
fun setEapType(eapType: Int): Unit

Set the EAP (Extensible Authentication Protocol) method type associated with this user credential. Refer to EAP Numbers for valid values.

Parameters
eapType Int: The EAP method type associated with this user credential

setNonEapInnerMethod

Added in API level 26
fun setNonEapInnerMethod(nonEapInnerMethod: String!): Unit

Set the inner non-EAP method associated with this user credential.

Parameters
nonEapInnerMethod String!: The non-EAP inner method to set to

setPassword

Added in API level 26
fun setPassword(password: String!): Unit

Set the Base64-encoded password associated with this user credential.

Parameters
password String!: The password to set to

setUsername

Added in API level 26
fun setUsername(username: String!): Unit

Set the username associated with this user credential.

Parameters
username String!: The username to set to

toString

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

writeToParcel

Added in API level 26
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit
Parameters
dest Parcel: The Parcel in which the object should be written. 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 26
static val CREATOR: Parcelable.Creator<Credential.UserCredential!>