Added in API level 26

CertificateCredential


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

Certificate based credential. This is used for EAP-TLS. Contains fields under PerProviderSubscription/Credential/DigitalCertificate subtree.

Summary

Inherited constants
Public constructors

Constructor for creating CertificateCredential with default values.

Copy constructor.

Public methods
Int

Boolean
equals(other: Any?)

ByteArray!

Get the certificate SHA-256 fingerprint associated with this certificate credential.

String!

Get the certificate type associated with this certificate credential.

Int

Unit
setCertSha256Fingerprint(certSha256Fingerprint: ByteArray!)

Set the certificate SHA-256 fingerprint associated with this certificate credential.

Unit
setCertType(certType: String!)

Set the certificate type associated with this certificate credential.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties
static Parcelable.Creator<Credential.CertificateCredential!>

Public constructors

CertificateCredential

Added in API level 26
CertificateCredential()

Constructor for creating CertificateCredential with default values.

CertificateCredential

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

Copy constructor.

Parameters
source Credential.CertificateCredential!: 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.

getCertSha256Fingerprint

Added in API level 26
fun getCertSha256Fingerprint(): ByteArray!

Get the certificate SHA-256 fingerprint associated with this certificate credential.

Return
ByteArray! certificate SHA-256 fingerprint

getCertType

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

Get the certificate type associated with this certificate credential.

Return
String! certificate type

hashCode

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

setCertSha256Fingerprint

Added in API level 26
fun setCertSha256Fingerprint(certSha256Fingerprint: ByteArray!): Unit

Set the certificate SHA-256 fingerprint associated with this certificate credential.

Parameters
certSha256Fingerprint ByteArray!: The certificate fingerprint to set to

setCertType

Added in API level 26
fun setCertType(certType: String!): Unit

Set the certificate type associated with this certificate credential.

Parameters
certType String!: The certificate type 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.CertificateCredential!>