Added in API level 26

SimCredential

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

SIM (Subscriber Identify Module) based credential. Contains fields under PerProviderSubscription/Credential/SIM subtree.

Summary

Inherited constants
Public constructors

Constructor for creating SimCredential with default values.

Copy constructor

Public methods
Int

Boolean
equals(other: Any?)

Int

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

String!

Get the IMSI (International Mobile Subscriber Identity) associated with this SIM credential.

Int

Unit
setEapType(eapType: Int)

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

Unit
setImsi(imsi: String!)

Set the IMSI (International Mobile Subscriber Identity) associated with this SIM credential.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties
static Parcelable.Creator<Credential.SimCredential!>

Public constructors

SimCredential

Added in API level 26
SimCredential()

Constructor for creating SimCredential with default values.

SimCredential

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

Copy constructor

Parameters
source Credential.SimCredential!: 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 SIM credential.

Return
Int EAP method type associated with this SIM credential

getImsi

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

Get the IMSI (International Mobile Subscriber Identity) associated with this SIM credential.

Return
String! IMSI associated with this SIM 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 SIM credential.

Parameters
eapType Int: The EAP method type to set to

setImsi

Added in API level 26
fun setImsi(imsi: String!): Unit

Set the IMSI (International Mobile Subscriber Identity) associated with this SIM credential.

Parameters
imsi String!: The IMSI 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.SimCredential!>