Merge "hotspot2: expose string constants for cert type and auth methods" am: 603fb2ef56
am: d919593b9d
Change-Id: I04651e913216903316e8625672cf62609e76058d
This commit is contained in:
@@ -121,13 +121,23 @@ public final class Credential implements Parcelable {
|
|||||||
*/
|
*/
|
||||||
private static final int MAX_PASSWORD_BYTES = 255;
|
private static final int MAX_PASSWORD_BYTES = 255;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Supported authentication methods.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final String AUTH_METHOD_PAP = "PAP";
|
||||||
|
/** @hide */
|
||||||
|
public static final String AUTH_METHOD_MSCHAP = "MS-CHAP";
|
||||||
|
/** @hide */
|
||||||
|
public static final String AUTH_METHOD_MSCHAPV2 = "MS-CHAP-V2";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supported Non-EAP inner methods. Refer to
|
* Supported Non-EAP inner methods. Refer to
|
||||||
* Credential/UsernamePassword/EAPMethod/InnerEAPType in Hotspot 2.0 Release 2 Technical
|
* Credential/UsernamePassword/EAPMethod/InnerEAPType in Hotspot 2.0 Release 2 Technical
|
||||||
* Specification Section 9.1 for more info.
|
* Specification Section 9.1 for more info.
|
||||||
*/
|
*/
|
||||||
private static final Set<String> SUPPORTED_AUTH =
|
private static final Set<String> SUPPORTED_AUTH = new HashSet<String>(
|
||||||
new HashSet<String>(Arrays.asList("PAP", "CHAP", "MS-CHAP", "MS-CHAP-V2"));
|
Arrays.asList(AUTH_METHOD_PAP, AUTH_METHOD_MSCHAP, AUTH_METHOD_MSCHAPV2));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Username of the credential.
|
* Username of the credential.
|
||||||
@@ -348,8 +358,9 @@ public final class Credential implements Parcelable {
|
|||||||
public static final class CertificateCredential implements Parcelable {
|
public static final class CertificateCredential implements Parcelable {
|
||||||
/**
|
/**
|
||||||
* Supported certificate types.
|
* Supported certificate types.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
private static final String CERT_TYPE_X509V3 = "x509v3";
|
public static final String CERT_TYPE_X509V3 = "x509v3";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Certificate SHA-256 fingerprint length.
|
* Certificate SHA-256 fingerprint length.
|
||||||
|
|||||||
Reference in New Issue
Block a user