Skip to content

Most visited

Recently visited



public final class ConfigParser
extends Object


Utility class for building PasspointConfiguration from an installation file.


Public methods

static PasspointConfiguration parsePasspointConfig(String mimeType, byte[] data)

Parse the Hotspot 2.0 Release 1 configuration data into a PasspointConfiguration object.

Inherited methods

From class java.lang.Object

Public methods


added in API level 26
PasspointConfiguration parsePasspointConfig (String mimeType, 
                byte[] data)

Parse the Hotspot 2.0 Release 1 configuration data into a PasspointConfiguration object. The configuration data is a base64 encoded MIME multipart data. Below is the format of the decoded message: Content-Type: multipart/mixed; boundary={boundary} Content-Transfer-Encoding: base64 [Skip uninterested headers] --{boundary} Content-Type: application/x-passpoint-profile Content-Transfer-Encoding: base64 [base64 encoded Passpoint profile data] --{boundary} Content-Type: application/x-x509-ca-cert Content-Transfer-Encoding: base64 [base64 encoded X509 CA certificate data] --{boundary} Content-Type: application/x-pkcs12 Content-Transfer-Encoding: base64 [base64 encoded PKCS#12 ASN.1 structure containing client certificate chain] --{boundary}

mimeType String: MIME type of the encoded data.

data byte: A base64 encoded MIME multipart message containing the Passpoint profile (required), CA (Certificate Authority) certificate (optional), and client certificate chain (optional).

PasspointConfiguration PasspointConfiguration

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)