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 the anonymous identity
|
||||||||||
|
Get CA certificate
|
||||||||||
|
Get client certificate
|
||||||||||
|
Get the eap method.
|
||||||||||
|
Get the identity
|
||||||||||
|
Get the password.
|
||||||||||
|
Get the phase 2 authentication method.
|
||||||||||
|
Get 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 EAP authentication method.
|
||||||||||
|
Set the identity
|
||||||||||
|
Set the password.
|
||||||||||
|
Set Phase 2 authentication method.
|
||||||||||
|
Set subject match.
|
||||||||||
|
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 the anonymous identity
Get CA certificate
Get client certificate
Get the password. Returns locally set password value. For networks fetched from framework, returns "*".
Get the phase 2 authentication method.
WifiEnterpriseConfig.Phase2
Get subject match
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 EAP authentication method.
IllegalArgumentException | on an invalid eap method |
---|
Set the password.
password | the password |
---|
Set Phase 2 authentication method. Sets the inner authentication method to be used in phase 2 after setting up a secure channel
phase2Method |
is the inner authentication method and can be one of
NONE
,
PAP
,
MSCHAP
,
MSCHAPV2
,
GTC
|
---|
IllegalArgumentException | on an invalid phase2 method |
---|
Set subject match. 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
.
|