All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.craxiom.messaging.wifi.CipherSuite Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: com/craxiom/messaging/wifi/ciphersuite/cipher_suite.proto
// Protobuf Java Version: 4.27.3

package com.craxiom.messaging.wifi;

/**
 * 
 *
 * This enum defines the Cipher Suites field of the 802.11 messages.
 *
 * Note that a single Beacon, Probe Response, Association Request, or Reassociation Request Frame can contain
 * multiple Cipher Suites, and multiple AKM suites.  It is necessary to list all of the supported suites so that a
 * proper security assessment can be performed on the Access Point.
 *
 * Following are how the enum values map to IEEE Std 802.11-2012
 * 00-0F-AC:1 - WEP_40
 * 00-0F-AC:2 - TKIP
 * 00-0F-AC:4 - CCMP
 * 00-0F-AC:5 - WEP_104
 *
 * New from IEE Std 802.11-2016
 * 00-0F-AC:8 - GCMP-128
 * 00-0F-AC:9 - GCMP-256
 * 00-0F-AC:10 - CCMP-256
 * 00-0F-AC:11 - BIP-GMAC-128
 * 00-0F-AC:12 - BIP-GMAC-256
 * 00-0F-AC:13 - BIP-CMAC-256
 *
 * And OPEN is no Cipher.
 * 
* * Protobuf enum {@code com.craxiom.messaging.wifi.ciphersuite.CipherSuite} */ public enum CipherSuite implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * WEP_40 = 1; */ WEP_40(1), /** * TKIP = 2; */ TKIP(2), /** * CCMP = 3; */ CCMP(3), /** * WEP_104 = 4; */ WEP_104(4), /** * GCMP_128 = 5; */ GCMP_128(5), /** * GCMP_256 = 6; */ GCMP_256(6), /** * CCMP_256 = 7; */ CCMP_256(7), /** * BIP_GMAC_128 = 8; */ BIP_GMAC_128(8), /** * BIP_GMAC_256 = 9; */ BIP_GMAC_256(9), /** * BIP_CMAC_256 = 10; */ BIP_CMAC_256(10), /** * OPEN = 13; */ OPEN(13), /** *
   * For the times where it is unknown if WEP_40 or WEP_104 is being employed.
   * 
* * WEP = 14; */ WEP(14), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 3, /* suffix= */ "", CipherSuite.class.getName()); } /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * WEP_40 = 1; */ public static final int WEP_40_VALUE = 1; /** * TKIP = 2; */ public static final int TKIP_VALUE = 2; /** * CCMP = 3; */ public static final int CCMP_VALUE = 3; /** * WEP_104 = 4; */ public static final int WEP_104_VALUE = 4; /** * GCMP_128 = 5; */ public static final int GCMP_128_VALUE = 5; /** * GCMP_256 = 6; */ public static final int GCMP_256_VALUE = 6; /** * CCMP_256 = 7; */ public static final int CCMP_256_VALUE = 7; /** * BIP_GMAC_128 = 8; */ public static final int BIP_GMAC_128_VALUE = 8; /** * BIP_GMAC_256 = 9; */ public static final int BIP_GMAC_256_VALUE = 9; /** * BIP_CMAC_256 = 10; */ public static final int BIP_CMAC_256_VALUE = 10; /** * OPEN = 13; */ public static final int OPEN_VALUE = 13; /** *
   * For the times where it is unknown if WEP_40 or WEP_104 is being employed.
   * 
* * WEP = 14; */ public static final int WEP_VALUE = 14; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CipherSuite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static CipherSuite forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return WEP_40; case 2: return TKIP; case 3: return CCMP; case 4: return WEP_104; case 5: return GCMP_128; case 6: return GCMP_256; case 7: return CCMP_256; case 8: return BIP_GMAC_128; case 9: return BIP_GMAC_256; case 10: return BIP_CMAC_256; case 13: return OPEN; case 14: return WEP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CipherSuite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CipherSuite findValueByNumber(int number) { return CipherSuite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.craxiom.messaging.wifi.CipherSuiteOuterClass.getDescriptor().getEnumTypes().get(0); } private static final CipherSuite[] VALUES = values(); public static CipherSuite valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CipherSuite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.craxiom.messaging.wifi.ciphersuite.CipherSuite) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy