public static PublicKeyOOB getPublicKeyOOBFromBitMask(final byte rawPublicKeyType) {
        final PublicKeyOOB[] publicKeyOOBS = {PUBLIC_KEY_INFORMATION_AVAILABLE};
        for (PublicKeyOOB publicKeyOOB : publicKeyOOBS) {
            if ((rawPublicKeyType & publicKeyOOB.ordinal()) == publicKeyOOB.ordinal()) {
                return publicKeyOOB;
            }
        }
        return null;
    }
Returns the PublicKeyOOB

@param rawPublicKeyType raw algorithm type received
mesh/src/main/java/no/nordicsemi/android/mesh/utils/PublicKeyOOB.java