1 package com
.android
.server
.wifi
.anqp
.eap
;
3 import java
.net
.ProtocolException
;
4 import java
.nio
.ByteBuffer
;
5 import java
.util
.Arrays
;
8 * An EAP authentication parameter, IEEE802.11-2012, table 8-188
10 public class VendorSpecificAuth
implements AuthParam
{
12 private final byte[] mData
;
14 public VendorSpecificAuth(int length
, ByteBuffer payload
) throws ProtocolException
{
15 mData
= new byte[length
];
20 public EAP
.AuthInfoID
getAuthInfoID() {
21 return EAP
.AuthInfoID
.VendorSpecific
;
24 public int hashCode() {
25 return Arrays
.hashCode(mData
);
29 public boolean equals(Object thatObject
) {
30 if (thatObject
== this) {
32 } else if (thatObject
== null || thatObject
.getClass() != VendorSpecificAuth
.class) {
35 return Arrays
.equals(((VendorSpecificAuth
) thatObject
).getData(), getData());
39 public byte[] getData() {
44 public String
toString() {
45 return "Auth method VendorSpecificAuth, data = " + Arrays
.toString(mData
) + '\n';