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. | |
| UserCredential(source: Credential.UserCredential!)Copy constructor. | |
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| 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 | hashCode() | 
| 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 | toString() | 
| Unit | writeToParcel(dest: Parcel, flags: Int) | 
| Properties | |
|---|---|
| static Parcelable.Creator<Credential.UserCredential!> | |
Public constructors
UserCredential
UserCredential()
Constructor for creating UserCredential with default values.
UserCredential
UserCredential(source: Credential.UserCredential!)
Copy constructor.
| Parameters | |
|---|---|
| source | Credential.UserCredential!: The source to copy from | 
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
| obj | the reference object with which to compare. | 
| Return | |
|---|---|
| Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
getEapType
fun getEapType(): Int
Get the EAP (Extensible Authentication Protocol) method type associated with this user credential.
| Return | |
|---|---|
| Int | EAP method type | 
getNonEapInnerMethod
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
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
fun getUsername(): String!
Get the username associated with this user credential.
| Return | |
|---|---|
| String! | the username associated with this user credential | 
setEapType
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
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
fun setPassword(password: String!): Unit
Set the Base64-encoded password associated with this user credential.
| Parameters | |
|---|---|
| password | String!: The password to set to | 
setUsername
fun setUsername(username: String!): Unit
Set the username associated with this user credential.
| Parameters | |
|---|---|
| username | String!: The username to set to | 
toString
fun toString(): String
| Return | |
|---|---|
| String | a string representation of the object. | 
writeToParcel
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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
