java.lang.Object | |
↳ | android.net.wifi.WifiEnterpriseConfig |
Enterprise configuration details for Wi-Fi. Stores details about the EAP method and any associated credentials.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WifiEnterpriseConfig.Eap | The Extensible Authentication Protocol method used | ||||||||||
WifiEnterpriseConfig.Phase2 | The inner authentication method used |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copy constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Get alternate subject match
| |||||||||||
Get the anonymous identity
| |||||||||||
Get CA certificate
| |||||||||||
Get client certificate
| |||||||||||
Get the domain_suffix_match value.
| |||||||||||
Get the eap method.
| |||||||||||
Get the identity
| |||||||||||
Get the password.
| |||||||||||
Get the phase 2 authentication method.
| |||||||||||
Get plmn (Public Land Mobile Network) for passpoint credential; see
(String) for more information
| |||||||||||
Get realm for passpoint credential; see
setRealm(String) for more information
| |||||||||||
This method was deprecated
in API level 23.
in favor of altSubjectMatch
| |||||||||||
Set alternate subject match.
| |||||||||||
Set anonymous identity.
| |||||||||||
Specify a X.509 certificate that identifies the server.
| |||||||||||
Specify a private key and client certificate for client authorization.
| |||||||||||
Set the domain_suffix_match directive on wpa_supplicant.
| |||||||||||
Set the EAP authentication method.
| |||||||||||
Set the identity
| |||||||||||
Set the password.
| |||||||||||
Set Phase 2 authentication method.
| |||||||||||
Set plmn (Public Land Mobile Network) of the provider of passpoint credential
| |||||||||||
Set realm for passpoint credential; realm identifies a set of networks where your
passpoint credential can be used
| |||||||||||
This method was deprecated
in API level 23.
in favor of altSubjectMatch
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Get alternate subject match
Get the anonymous identity
Get CA certificate
Get client certificate
Get the domain_suffix_match value. See setDomSuffixMatch.
Get the password. Returns locally set password value. For networks fetched from framework, returns "*".
Get the phase 2 authentication method.
WifiEnterpriseConfig.Phase2
Get plmn (Public Land Mobile Network) for passpoint credential; see (String)
for more information
Get realm for passpoint credential; see setRealm(String)
for more information
This method was deprecated
in API level 23.
in favor of altSubjectMatch
Get subject match (deprecated)
Set alternate subject match. This is the substring to be matched against the alternate subject of the authentication server certificate.
altSubjectMatch | substring to be matched, for example DNS:server.example.com;EMAIL:server@example.com |
---|
Set anonymous identity. This is used as the unencrypted identity with certain EAP types
anonymousIdentity | the anonymous identity |
---|
Specify a X.509 certificate that identifies the server.
A default name is automatically assigned to the certificate and used with this configuration. The framework takes care of installing the certificate when the config is saved and removing the certificate when the config is removed.
cert | X.509 CA certificate |
---|
IllegalArgumentException | if not a CA certificate |
---|
Specify a private key and client certificate for client authorization.
A default name is automatically assigned to the key entry and used with this configuration. The framework takes care of installing the key entry when the config is saved and removing the key entry when the config is removed.
IllegalArgumentException | for an invalid key or certificate. |
---|
Set the domain_suffix_match directive on wpa_supplicant. This is the parameter to use for Hotspot 2.0 defined matching of AAA server certs per WFA HS2.0 spec, section 7.3.3.2, second paragraph. From wpa_supplicant documentation: Constraint for server domain name. If set, this FQDN is used as a suffix match requirement for the AAAserver certificate in SubjectAltName dNSName element(s). If a matching dNSName is found, this constraint is met. If no dNSName values are present, this constraint is matched against SubjectName CN using same suffix match comparison. Suffix match here means that the host/domain name is compared one label at a time starting from the top-level domain and all the labels in domain_suffix_match shall be included in the certificate. The certificate may include additional sub-level labels in addition to the required labels. For example, domain_suffix_match=example.com would match test.example.com but would not match test-example.com.
domain | The domain value |
---|
Set the EAP authentication method.
IllegalArgumentException | on an invalid eap method |
---|
Set the password.
password | the password |
---|
Set plmn (Public Land Mobile Network) of the provider of passpoint credential
plmn | the plmn value derived from mcc (mobile country code) & mnc (mobile network code) |
---|
Set realm for passpoint credential; realm identifies a set of networks where your passpoint credential can be used
realm | the realm |
---|
This method was deprecated
in API level 23.
in favor of altSubjectMatch
Set subject match (deprecated). This is the substring to be matched against the subject of the authentication server certificate.
subjectMatch | substring to be matched |
---|
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|